mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Remove unnecessary returning() from todo insert query
This commit is contained in:
5
.changeset/yellow-women-love.md
Normal file
5
.changeset/yellow-women-love.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"create-better-t-stack": patch
|
||||
---
|
||||
|
||||
Remove unnecessary returning() from todo insert query
|
||||
@@ -17,8 +17,7 @@ export const todoRouter = {
|
||||
.insert(todo)
|
||||
.values({
|
||||
text: input.text,
|
||||
})
|
||||
.returning();
|
||||
});
|
||||
return result[0];
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user