Add get by studio tests

This commit is contained in:
Zoe Roux
2025-03-03 09:36:38 +01:00
parent 4d9547952e
commit ff5fc69d41
3 changed files with 62 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ export const studiosH = new Elysia({ tags: ["studios"] })
.where(isUuid(id) ? eq(studios.id, id) : eq(studios.slug, id))
.limit(1);
if (!studios) {
if (!studio) {
return error(404, {
status: 404,
message: `No studios with the id or slug: '${id}'.`,