forked from jsnbuchanan/crowd-funder-for-time-pwa
await all of the db.settings updates
This commit is contained in:
@@ -51,8 +51,8 @@ db.version(2).stores({
|
||||
db.version(3).stores(TempSchema);
|
||||
|
||||
// Event handler to initialize the non-sensitive database with default settings
|
||||
db.on("populate", () => {
|
||||
db.settings.add({
|
||||
db.on("populate", async () => {
|
||||
await db.settings.add({
|
||||
id: MASTER_SETTINGS_KEY,
|
||||
apiServer: DEFAULT_ENDORSER_API_SERVER,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user