mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-05 05:45:16 -04:00
Update test helpers
This commit is contained in:
@@ -21,12 +21,13 @@ export const videos = new Elysia({ prefix: "/videos", tags: ["videos"] })
|
||||
})
|
||||
.post(
|
||||
"",
|
||||
async ({ body }) => {
|
||||
return await db
|
||||
async ({ body, error }) => {
|
||||
const ret = await db
|
||||
.insert(videosT)
|
||||
.values(body)
|
||||
.onConflictDoNothing()
|
||||
.returning({ id: videosT.id, path: videosT.path });
|
||||
return error(201, ret);
|
||||
},
|
||||
{
|
||||
body: t.Array(SeedVideo),
|
||||
|
||||
Reference in New Issue
Block a user