Remove redundant await return in create project mutation

This commit is contained in:
Aman Varshney
2025-06-11 02:22:23 +05:30
parent 8fd6caccfa
commit 28e5a7e857
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
Remove redundant await return in create project mutation

View File

@@ -306,10 +306,10 @@ const router = t.router({
.mutation(async ({ input }) => { .mutation(async ({ input }) => {
const [projectName, options] = input; const [projectName, options] = input;
const combinedInput = { const combinedInput = {
projectName: projectName || undefined, projectName,
...options, ...options,
}; };
return await createProjectHandler(combinedInput); await createProjectHandler(combinedInput);
}), }),
}); });