Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Sep 6, 2024
1 parent 1204fed commit 7d2a413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/common/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export async function validateDB(): Promise<void> {

const dbConfigRes = await db.get([DB_CONFIG_KEY]);
if (!dbConfigRes.value) {
return db.set([DB_CONFIG_KEY], CONFIG);
await db.set([DB_CONFIG_KEY], CONFIG);
return;
}

const dbConfig = configSchema.parse(dbConfigRes.value);
Expand Down

0 comments on commit 7d2a413

Please sign in to comment.