mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 17:26:19 +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 === "[email protected]" && users.length === 2) {
|
||||
|
||||
Reference in New Issue
Block a user