Parcourir la source

fix: updateValues events

Gerald il y a 8 ans
Parent
commit
d2ca55a4c2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/background/utils/db.js

+ 1 - 1
src/background/utils/db.js

@@ -355,7 +355,7 @@ export function setValues(where, values) {
     ? Promise.resolve(where.id)
     ? Promise.resolve(where.id)
     : getScript(where).then(script => object.get(script, 'props.id')))
     : getScript(where).then(script => object.get(script, 'props.id')))
   .then(id => {
   .then(id => {
-    if (id) storage.value.dump(id, values).then(() => ({ id, values }));
+    if (id) return storage.value.dump(id, values).then(() => ({ id, values }));
   });
   });
 }
 }