diff --git a/src/app/api/servers/[id]/admins/[userId]/route.ts b/src/app/api/servers/[id]/admins/[userId]/route.ts index 7134666..aee83b8 100644 --- a/src/app/api/servers/[id]/admins/[userId]/route.ts +++ b/src/app/api/servers/[id]/admins/[userId]/route.ts @@ -39,10 +39,6 @@ export async function DELETE( return NextResponse.json({ error: 'User is not an admin of this server' }, { status: 404 }) } - if (server.admins.length <= 1) { - return NextResponse.json({ error: 'Cannot remove the last admin from a server' }, { status: 400 }) - } - const removedUser = await User.findById(userId, { username: 1 }).lean() await Server.updateOne(