summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/meta.ts
diff options
context:
space:
mode:
authorSatsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>2019-07-05 07:45:00 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-07-05 07:45:00 +0900
commitd5caf22d8c4f1509fed7cb5e3ef5237e24c677fd (patch)
tree3d1956fa88d5a1200379b9b994c4dbc058688b7b /src/server/api/endpoints/meta.ts
parentUpdate node version (#5101) (diff)
downloadsharkey-d5caf22d8c4f1509fed7cb5e3ef5237e24c677fd.tar.gz
sharkey-d5caf22d8c4f1509fed7cb5e3ef5237e24c677fd.tar.bz2
sharkey-d5caf22d8c4f1509fed7cb5e3ef5237e24c677fd.zip
Update Emojis immediately (#5106)
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
-rw-r--r--src/server/api/endpoints/meta.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts
index a3390a011d..a754a885ab 100644
--- a/src/server/api/endpoints/meta.ts
+++ b/src/server/api/endpoints/meta.ts
@@ -95,7 +95,7 @@ export const meta = {
export default define(meta, async (ps, me) => {
const instance = await fetchMeta(true);
- const emojis = await Emojis.find({ where: { host: null }, cache: 3600000 }); // 1 hour
+ const emojis = await Emojis.find({ where: { host: null }, cache: { id: 'meta_emojis', milliseconds: 3600000 } }); // 1 hour
const response: any = {
maintainerName: instance.maintainerName,