Fix pagination query parsing, repertoire entry editor

This commit is contained in:
2024-12-30 11:02:07 +01:00
parent d7e6df14d4
commit fc64f77335
3 changed files with 236 additions and 27 deletions

View File

@@ -802,11 +802,7 @@ const app = new Elysia()
const res = await q.execute();
return res.map(({ repertoireId }) => repertoireId);
}, {
query: t.Object({
name: t.Optional(t.String()),
offset: t.Optional(t.Integer({ minimum: 0 })),
limit: t.Optional(t.Integer({ minimum: 1, maximum: 100 })),
}),
query: Model.Repertoire_Query,
response: {
200: t.Array(Model.RepertoireId),
401: t.Literal("Session invalid or expired"),