update migrationAssignSuperadmin

pull/1171/head
Maidul Islam 6 months ago
parent 4ac3669756
commit 9fbf01c19e

@ -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) {

Loading…
Cancel
Save