Skip to content

Commit 25bc7f8

Browse files
committed
fix: request context usage in endpoint builder
1 parent 116c081 commit 25bc7f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/plugins/admin/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ export function admin<TContext extends MinimalContext<{ user: AnyUserTable }>>(
190190
}),
191191
},
192192
},
193-
async ({ context, body }) => {
193+
async ({ requestContext, body }) => {
194194
const { userId } = body
195195

196-
await context.db
196+
await requestContext.db
197197
.update(schema.user)
198198
.set({
199199
banned: true,

0 commit comments

Comments
 (0)