fix(boards): duplication of boards fails with postgresql / mysql (#5228)
This commit is contained in:
1 parent
3daadec358
commit
ba9c3f3e27
1 file changed
+1
-1
@@ -442,7 +442,7 @@ export const boardRouter = createTRPCRouter({
|
|||||||
await handleTransactionsAsync(ctx.db, {
|
await handleTransactionsAsync(ctx.db, {
|
||||||
async handleAsync(db, schema) {
|
async handleAsync(db, schema) {
|
||||||
await db.transaction(async (transaction) => {
|
await db.transaction(async (transaction) => {
|
||||||
transaction.insert(schema.boards).values({
|
await transaction.insert(schema.boards).values({
|
||||||
...boardProps,
|
...boardProps,
|
||||||
id: newBoardId,
|
id: newBoardId,
|
||||||
name: input.name,
|
name: input.name,
|
||||||
|
|||||||
Reference in new issue
Block a user