mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Add stricter ESLint rules
This commit is contained in:
parent
d30bbe56a7
commit
887128356e
|
|
@ -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()));
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue