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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isNewInstance = !users.length;
|
if (users.length) {
|
||||||
if (!isNewInstance) {
|
|
||||||
let superAdminUserId = "";
|
let superAdminUserId = "";
|
||||||
const firstAccount = users?.[0];
|
const firstAccount = users?.[0];
|
||||||
if (firstAccount.email === "test@localhost.local" && users.length === 2) {
|
if (firstAccount.email === "test@localhost.local" && users.length === 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user