migrate: fix checkLock

This commit is contained in:
undefined committed 2025-03-05 12:11:37 +08:00
1 parent f7e635c40c
commit 688e0d2210
1 file changed
+2 -2
+2 -2
View File
@@ -8,10 +8,10 @@ import {
const RE_MD5 = /^[\da-f]{32}$/;
function checkLock(innerCall) {
return async (args) => {
return async (...args) => {
const cur = await SystemModel.get('migrate.lock');
if (cur) throw new SystemError(`migrate lock already exists: ${cur}, possible another migration is running`);
return innerCall(args);
return innerCall(...args);
};
}