Skip to content

Commit

Permalink
upsertUser query fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishtar committed Jun 27, 2024
1 parent 5b237dd commit e06f107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/queries/upsertUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import type { TDbConnection } from '../../types'
import { users } from '../schema'

export const upsertUser = (db: TDbConnection, values: typeof users.$inferInsert) => {
return db.insert(users).values(values).onConflictDoNothing()
return db.insert(users).values(values).onConflictDoNothing({ target: users.id })
}

0 comments on commit e06f107

Please sign in to comment.