Skip to content

Commit

Permalink
Merge pull request #1706 from Duduzera1997/feat/add-remote-config-to-…
Browse files Browse the repository at this point in the history
…nestjs-firebase

(feat): add remote config to nestjs firebase module
  • Loading branch information
9renpoto authored Oct 21, 2023
2 parents 91c0acf + a18c3f5 commit 7258bcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/nestjs-firebase/src/firebase.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ export interface FirebaseAdmin {
messaging: firebaseAdmin.messaging.Messaging;
firestore: firebaseAdmin.firestore.Firestore;
storage: firebaseAdmin.storage.Storage;
remoteConfig: firebaseAdmin.remoteConfig.RemoteConfig;
}
1 change: 1 addition & 0 deletions packages/nestjs-firebase/src/util/getFirebaseAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const createInstances = (app: admin.app.App): FirebaseAdmin => ({
messaging: app.messaging(),
firestore: app.firestore(),
storage: app.storage(),
remoteConfig: app.remoteConfig(),
});

export const getFirebaseAdmin = (
Expand Down

0 comments on commit 7258bcd

Please sign in to comment.