mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-07 20:45:17 +00:00
Merge pull request #4394 from ngenohkevin/fix/migrate-auth-secret-exit-on-empty
fix(migrate-auth-secret): exit cleanly when there are no 2FA records
This commit is contained in:
@@ -46,7 +46,7 @@ async function main() {
|
|||||||
|
|
||||||
if (records.length === 0) {
|
if (records.length === 0) {
|
||||||
console.log("✅ No 2FA records found, nothing to migrate.");
|
console.log("✅ No 2FA records found, nothing to migrate.");
|
||||||
return;
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`📦 Found ${records.length} 2FA record(s) to migrate.`);
|
console.log(`📦 Found ${records.length} 2FA record(s) to migrate.`);
|
||||||
|
|||||||
Reference in New Issue
Block a user