fix: handle empty users list for mailing

This commit is contained in:
Riccardo
2023-12-18 18:39:38 +01:00
parent 5407e2cf79
commit 6040d8acc1

View File

@@ -29,7 +29,7 @@ export async function GET(request: Request) {
}
});
if (!users) {
if (users.length === 0) {
return new NextResponse('No users.', {
status: 200
});