Skip to content

Commit

Permalink
fix(server/groups): use conn.update when creating dynamic group
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Oct 19, 2024
1 parent 5917889 commit c3c55f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/groups/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function InsertGroup({ name, label, type, colour, hasAccount, grade
using conn = await GetConnection();
await conn.beginTransaction();

const insertedGroup = await conn.insert(
const insertedGroup = await conn.update(
'INSERT IGNORE INTO `ox_groups` (`name`, `label`, `type`, `colour`, `hasAccount`) VALUES (?, ?, ?, ?, ?)',
[name, label, type, colour, hasAccount]
);
Expand Down

0 comments on commit c3c55f2

Please sign in to comment.