chore: Fixed tests

This commit is contained in:
Simeon Radivoev 2026-05-15 15:07:51 +03:00
parent 9141fb35d4
commit 5593985884
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
13 changed files with 139 additions and 66 deletions

View file

@ -454,18 +454,18 @@ export default new Elysia()
}, {
params: z.object({ id: z.string(), source: z.string() }),
})
.post('/game/:source/:id/install', async ({ params: { id, source }, body: { downloadId } }) =>
.post('/game/:source/:id/install', async ({ params: { id, source }, body }) =>
{
if (!taskQueue.findJob(InstallJob.query({ source, id }), InstallJob))
{
return taskQueue.enqueue(InstallJob.query({ source, id }), new InstallJob(id, source, { downloadId }));
return taskQueue.enqueue(InstallJob.query({ source, id }), new InstallJob(id, source, body));
} else
{
return status('Not Implemented');
}
}, {
params: z.object({ id: z.string(), source: z.string() }),
body: z.object({ downloadId: z.string().optional() }),
body: z.object({ downloadId: z.string().optional() }).optional(),
response: z.any()
})
.delete('/game/:source/:id/install', async ({ params: { id, source } }) =>