Add stricter ESLint rules

This commit is contained in:
Jesse Wierzbinski 2023-09-12 14:29:02 -10:00
parent d30bbe56a7
commit 887128356e
No known key found for this signature in database
GPG key ID: F9A1E418934E40B0

View file

@ -31,8 +31,7 @@ export default async (
id, id,
}); });
if (!user) if (!user) return errorResponse("User not found", 404);
return errorResponse("User not found", 404)
const statuses = await Status.find({ const statuses = await Status.find({
where: { where: {
@ -47,5 +46,5 @@ export default async (
take: limit ?? 20, take: limit ?? 20,
}); });
return jsonResponse(statuses.map((status) => status.toAPI())); return jsonResponse(statuses.map(status => status.toAPI()));
}; };