Skip to content

Commit a714e0f

Browse files
authored
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
2 parents b109e0e + 9f10f0f commit a714e0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dokploy/scripts/migrate-auth-secret.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function main() {
4646

4747
if (records.length === 0) {
4848
console.log("✅ No 2FA records found, nothing to migrate.");
49-
return;
49+
process.exit(0);
5050
}
5151

5252
console.log(`📦 Found ${records.length} 2FA record(s) to migrate.`);

0 commit comments

Comments
 (0)