Skip to content

Commit ccb5e92

Browse files
committed
shiritori/admin: don't go offline
If we go offline too early: entries will not be saved to Firebase. For now let's require the user to explicitly kill the import dictionary script after acknowledging that all entries have been written. Change-Id: Ic75099ea4f932a70ffc965e5a8a1f3460e833b4a
1 parent 87be0ae commit ccb5e92

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
npm install scripts/
2121
node scripts/admin.js food edict2-food.utf8 /path/to/service-account
22+
^C
2223

2324
1. Deploy firebase functions.
2425

scripts/admin.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,5 @@ fs.readFile(process.argv[3], 'utf8', function (err, data) {
9191
しりとり[k][word] = kana;
9292
});
9393
console.log(JSON.stringify(しりとり));
94-
if (admin) {
95-
admin.database().goOffline();
96-
}
9794
});
9895
});

0 commit comments

Comments
 (0)