Przeglądaj źródła

Fix DBKVStore value format

KernelDeimos 1 rok temu
rodzic
commit
0651aab1be

+ 1 - 1
packages/backend/src/services/drivers/implementations/DBKVStore.js

@@ -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');