Skip to content

Commit 7243102

Browse files
KATTautofix-ci[bot]coderabbitai[bot]
authored
chore: remove overzealous destructuring (#6930)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - None - Documentation - Revised coding guidelines: nuanced destructuring rules and front-matter now include .md/.mdx. - Unified resolver/middleware examples to use a single opts parameter. - Blog example: added tracing middleware and a span meta tag. - Fixed Next.js TypeScript docs link. - Refactor - Standardized example servers and code samples to opts-based callbacks without behavior changes. - Tests - Updated test suites to opts-based handlers; no behavioral changes. - Chores - Added rules enforcing pnpm usage and running tests without watch mode. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent c13cd90 commit 7243102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/routers/channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export const channelRouter = {
5353

5454
create: authedProcedure
5555
.input(z.object({ name: z.string().trim().min(2) }))
56-
.mutation(async ({ ctx, input }) => {
56+
.mutation(async (opts) => {
5757
const [channel] = await db
5858
.insert(Channel)
5959
.values({
60-
name: input.name,
60+
name: opts.input.name,
6161
})
6262
.returning();
6363

0 commit comments

Comments
 (0)