Remove unnecessary returning() from todo insert query

This commit is contained in:
Aman Varshney
2025-07-09 11:57:57 +05:30
parent e76801dc57
commit fe7b4ff847
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
Remove unnecessary returning() from todo insert query

View File

@@ -17,8 +17,7 @@ export const todoRouter = {
.insert(todo)
.values({
text: input.text,
})
.returning();
});
return result[0];
}),