fix (backend): update meta cache in admin/update-meta

This commit is contained in:
naskya 2024-06-06 17:10:39 +09:00
parent 4390dfcbfb
commit 3cf1e306b1
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -2,6 +2,7 @@ import { Meta } from "@/models/entities/meta.js";
import { insertModerationLog } from "@/services/insert-moderation-log.js";
import { db } from "@/db/postgre.js";
import define from "@/server/api/define.js";
import { updateMetaCache } from "backend-rs";
export const meta = {
tags: ["admin"],
@ -583,5 +584,5 @@ export default define(meta, paramDef, async (ps, me) => {
}
});
insertModerationLog(me, "updateMeta");
await Promise.all([insertModerationLog(me, "updateMeta"), updateMetaCache()]);
});