From 688e0d2210872bd0e4d593ab623697a2dddd3336 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 5 Mar 2025 12:11:37 +0800 Subject: [PATCH] migrate: fix checkLock --- packages/migrate/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/migrate/index.ts b/packages/migrate/index.ts index 827fad78d..c5e3f5ba2 100644 --- a/packages/migrate/index.ts +++ b/packages/migrate/index.ts @@ -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); }; }