Skip to content

Commit

Permalink
!hotfix: fcm private key를 읽을 수 없는 문제 해결 (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonyj1022 authored Sep 15, 2023
1 parent f372b86 commit 497392b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
Expand All @@ -35,8 +35,7 @@ FirebaseMessaging firebaseMessaging() throws IOException {
return FirebaseMessaging.getInstance(FIREBASE_APP);
}

final ClassPathResource resource = new ClassPathResource(FCM_PRIVATE_KEY_PATH);
final InputStream refreshToken = resource.getInputStream();
final FileInputStream refreshToken = new FileInputStream(FCM_PRIVATE_KEY_PATH);

final List<FirebaseApp> firebaseApps = FirebaseApp.getApps();
if (firebaseApps.isEmpty()) {
Expand Down

0 comments on commit 497392b

Please sign in to comment.