Skip to content

Commit

Permalink
fix: key setting in the datastore to work with arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
rorticus authored and jagregory committed Jul 23, 2021
1 parent c670384 commit d0a2557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/dataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const createDataStore: CreateDataStore = async (
},

async set(key, value) {
await db.set(key, value).save();
await db.set(key instanceof Array ? key.join(".") : key, value).save();
},
};
};

0 comments on commit d0a2557

Please sign in to comment.