Skip to content

Commit

Permalink
fix: ensure set() does not write _keyStr to the datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
mdornseif committed Apr 15, 2024
1 parent ee8e013 commit 0e6c792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/dstore-api.ts
Expand Up @@ -348,7 +348,7 @@ export class Dstore implements IDstore {
async set(key: Key, data: IDstoreEntryWithoutKey): Promise<Key> {
assertIsObject(key);
assertIsObject(data);
const saveEntity = { key, data };
const saveEntity = { key, data: { ...data, _keyStr: undefined } };
await this.save([saveEntity]);
return saveEntity.key;
}
Expand Down

0 comments on commit 0e6c792

Please sign in to comment.