feat: compulsory save guid + db dir cleanup

This commit is contained in:
mattia
2025-01-06 17:15:34 +01:00
parent 0dd0f8ff01
commit d4b12e8738
5 changed files with 8 additions and 54 deletions

View File

@@ -48,7 +48,7 @@ const PostLogRequestParamsSchema = z.object({
description: "Version of the game that generated this log",
example: "1.7.0",
}),
saveGuid: z.string().uuid().optional().openapi({
saveGuid: z.string().uuid().openapi({
title: "Save GUID",
description:
"A unique identifier for a whole game, which can be part of a multi-session game",
@@ -185,7 +185,7 @@ export const contract = c.router(
{
postLog: {
method: "POST",
path: "/logs/:gameName/:version/:saveGuid?/:sessionGuid",
path: "/logs/:gameName/:version/:saveGuid/:sessionGuid",
body: PostLogRequestBodySchema,
pathParams: PostLogRequestParamsSchema,
responses: {