mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-21 06:36:28 -04:00
Add get by studio tests
This commit is contained in:
@@ -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}'.`,
|
||||
|
||||
Reference in New Issue
Block a user