fixed moodle logic
This commit is contained in:
@@ -25,6 +25,7 @@ export const GET = async (req: NextRequest) => {
|
||||
if (!user) return NextResponse.json({ error: "User not found" }, { status: 404 });
|
||||
setTimeout(async () => {
|
||||
const moodleUser = await getMoodleUserById(user.id);
|
||||
|
||||
await prisma.user.update({
|
||||
where: {
|
||||
id: user.id,
|
||||
|
||||
Reference in New Issue
Block a user