From c3df07ff55d6c98abdfca9bdabedb07d4bf82cfd Mon Sep 17 00:00:00 2001 From: uuuuuuuk Date: Wed, 18 Sep 2024 20:22:34 +0900 Subject: [PATCH] =?UTF-8?q?update=20::=20FcmConfig=20=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EA=B3=BC=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/com/ondosee/global/config/FcmConfig.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/ondosee/global/config/FcmConfig.kt b/src/main/kotlin/com/ondosee/global/config/FcmConfig.kt index 0a25eb5..c19a9be 100644 --- a/src/main/kotlin/com/ondosee/global/config/FcmConfig.kt +++ b/src/main/kotlin/com/ondosee/global/config/FcmConfig.kt @@ -26,10 +26,10 @@ class FcmConfig( Files.copy(it, Paths.get(PATH)) val file = File(PATH) if (FirebaseApp.getApps().isEmpty()) { - val options = FirebaseOptions.builder() + FirebaseOptions.builder() .setCredentials(GoogleCredentials.fromStream(file.inputStream())) .build() - FirebaseApp.initializeApp(options) + .run(FirebaseApp::initializeApp) } file.delete() }