Skip to content

Commit

Permalink
🐛 fix insert statement array return value
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Mar 26, 2024
1 parent a690547 commit d96273d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const knexRawInsert = async (
knex: KnexReadWriteTransaction,
str: string,
params?: any[]
): Promise<{ insertId: number }> => await knex.raw(str, params ?? [])
): Promise<{ insertId: number }> => (await knex.raw(str, params ?? []))[0]

/**
* In the backporting workflow, the users create gdoc posts for posts. As long as these are not yet published,
Expand Down

0 comments on commit d96273d

Please sign in to comment.