Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -4,8 +4,11 @@ import { updateHostLibraryCaches } from '$lib/server/game-files/index.js';
|
||||
import { gameFileError, readGameJson } from '$lib/server/game-files/http.js';
|
||||
export async function POST({ request, params }: { request: Request; params: { id: string } }) {
|
||||
try {
|
||||
const host = authenticateAgent(request); const body = await readGameJson(request);
|
||||
const host = authenticateAgent(request);
|
||||
const body = await readGameJson(request);
|
||||
updateHostLibraryCaches(host.id, [{ ...body, libraryVersionId: params.id }]);
|
||||
return json({ ok: true });
|
||||
} catch (cause) { return gameFileError(cause); }
|
||||
} catch (cause) {
|
||||
return gameFileError(cause);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user