13 lines
248 B
TypeScript
13 lines
248 B
TypeScript
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,
|
|
},
|
|
});
|
|
}
|