mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-06 18:10:32 +00:00
Merge branch 'dev' into clients-pops
This commit is contained in:
@@ -53,7 +53,7 @@ export async function setupServerAdmin() {
|
||||
if (existing.email !== email) {
|
||||
await trx
|
||||
.update(users)
|
||||
.set({ email })
|
||||
.set({ email, username: email })
|
||||
.where(eq(users.userId, existing.userId));
|
||||
|
||||
logger.info(`Server admin email updated`);
|
||||
@@ -77,6 +77,7 @@ export async function setupServerAdmin() {
|
||||
logger.info(`Server admin created`);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error("Failed to setup server admin");
|
||||
logger.error(e);
|
||||
trx.rollback();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user