fix: Disable role change when OIDC roles are not ignored
This commit is contained in:
@@ -34,10 +34,6 @@ exports.seed = async (knex) => {
|
||||
createdAt: new Date().toISOString(),
|
||||
});
|
||||
} catch (error) {
|
||||
if (Object.keys(data).length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
await knex('user_account').update(data).where('email', process.env.DEFAULT_ADMIN_EMAIL);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user