Fix DBKVStore value format

This commit is contained in:
KernelDeimos 2024-04-02 00:47:14 -04:00
parent f8a7f1c1f9
commit 0651aab1be

View File

@ -55,7 +55,7 @@ class DBKVStore extends BaseImplementation {
[ user.id, key_hash ] [ user.id, key_hash ]
); );
return kv[0] ? { key: kv[0].key, value: kv[0].value } : null; return kv[0]?.value ?? null;
}, },
set: async function ({ key, value }) { set: async function ({ key, value }) {
const actor = this.context.get('actor'); const actor = this.context.get('actor');