Skip to content

Commit

Permalink
update :: FcmConfig 처리 과정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuuuuk committed Sep 18, 2024
1 parent d29ed76 commit c3df07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/ondosee/global/config/FcmConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit c3df07f

Please sign in to comment.