0
0
mirror of https://github.com/sp-tarkov/db-website.git synced 2025-02-08 04:50:46 -05:00

No need to await this... it expects a promise

This commit is contained in:
Refringe 2024-12-07 21:18:06 -05:00
parent 42ae753d5b
commit 08911e76de
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -21,7 +21,7 @@ export const api = new Elysia({ prefix: "/api" })
}) })
}) })
.get("/cache/:key", async ({ params: { key } }) => { .get("/cache/:key", async ({ params: { key } }) => {
return await CacheService.getCache(key); return CacheService.getCache(key);
}, { }, {
params: t.Object({ params: t.Object({
key: t.Union([ t.Literal("items"), t.Literal("locales"), t.Literal("handbook") ]), key: t.Union([ t.Literal("items"), t.Literal("locales"), t.Literal("handbook") ]),