Browse Source

fix: signup unverified user again

upstream-develop
poeti8 1 year ago
parent
commit
b6ee1fe800
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      server/db/user.ts

+ 2
- 2
server/db/user.ts View File

@ -59,8 +59,8 @@ export const createUser = async (
if (user) {
await knex<User>("users")
.where({ email, updated_at: new Date().toISOString() })
.update(data);
.where({ email })
.update({ ...data, updated_at: new Date().toISOString() });
} else {
await knex<User>("users").insert(data);
}


Loading…
Cancel
Save