await all of the db.settings updates

This commit is contained in:
2024-07-20 07:19:27 -06:00
parent 41a9c65afb
commit 5ad8a2d2ba
10 changed files with 23 additions and 23 deletions

View File

@@ -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,
});