Commit d01b5e59 authored by nanahira's avatar nanahira

fix

parent 29f7c589
......@@ -199,7 +199,7 @@ export class Aragami {
const actualKeys = (
await Promise.all(keyMeta.map((o) => this.getLockKeys(o)))
).flat();
if (!keys.length) {
if (!actualKeys.length) {
return cb();
}
return this.driver.lock(actualKeys, async () => await cb());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment