We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 116c081 commit 25bc7f8Copy full SHA for 25bc7f8
1 file changed
packages/core/src/plugins/admin/index.ts
@@ -190,10 +190,10 @@ export function admin<TContext extends MinimalContext<{ user: AnyUserTable }>>(
190
}),
191
},
192
193
- async ({ context, body }) => {
+ async ({ requestContext, body }) => {
194
const { userId } = body
195
196
- await context.db
+ await requestContext.db
197
.update(schema.user)
198
.set({
199
banned: true,
0 commit comments