Skip to content

Commit

Permalink
chore: firebase ability to use Realtime Database
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Tytar authored and 9renpoto committed Oct 22, 2023
1 parent 181c068 commit 8328024
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 @@ -26,6 +26,7 @@ export interface FirebaseAdmin {
auth: firebaseAdmin.auth.Auth;
messaging: firebaseAdmin.messaging.Messaging;
firestore: firebaseAdmin.firestore.Firestore;
database: firebaseAdmin.database.Database;
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 @@ -5,6 +5,7 @@ const createInstances = (app: admin.app.App): FirebaseAdmin => ({
auth: app.auth(),
messaging: app.messaging(),
firestore: app.firestore(),
database: app.database(),
storage: app.storage(),
remoteConfig: app.remoteConfig(),
});
Expand Down

0 comments on commit 8328024

Please sign in to comment.