Skip to content

Commit

Permalink
Fix init database (#3445)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern authored Jun 8, 2021
1 parent 9f4ba03 commit 44ae32e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Add Warsaw (europe-central2) Cloud Function Location to Firebase Extension template.
- Add Singapore (asia-southeast1) as a valid Firebase Realtime Database location.
- Fixes `firebase init database` failure when no project is selected (#2981)
- Fix issue where `firebase init database` overwrites entire `firebase.json` (#3299)
2 changes: 1 addition & 1 deletion src/init/features/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function createDefaultDatabaseInstance(project: string): Promise<DatabaseI
* @param config legacy config parameter. not used for database setup.
*/
export async function doSetup(setup: DatabaseSetup, config: Config): Promise<void> {
setup.config = {};
setup.config = setup.config || {};

let instanceDetails;
if (setup.projectId) {
Expand Down

0 comments on commit 44ae32e

Please sign in to comment.