mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
update migrationAssignSuperadmin
This commit is contained in:
@@ -860,8 +860,7 @@ export const migrationAssignSuperadmin = async () => {
|
||||
return;
|
||||
}
|
||||
|
||||
const isNewInstance = !users.length;
|
||||
if (!isNewInstance) {
|
||||
if (users.length) {
|
||||
let superAdminUserId = "";
|
||||
const firstAccount = users?.[0];
|
||||
if (firstAccount.email === "test@localhost.local" && users.length === 2) {
|
||||
|
||||
Reference in New Issue
Block a user