mirror of
https://github.com/sp-tarkov/db-website.git
synced 2025-02-08 05:10:46 -05:00
No need to await this... it expects a promise
This commit is contained in:
parent
42ae753d5b
commit
08911e76de
@ -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") ]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user