Refactor to vertical slice
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { db } from '@/lib/prisma';
|
||||
|
||||
export async function unblockUser(userId: string): Promise<void> {
|
||||
await db.user.update({
|
||||
where: { id: userId },
|
||||
data: {
|
||||
banned: false,
|
||||
bannedAt: null,
|
||||
banReason: null,
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user