Update Emojis immediately (#5106)
This commit is contained in:
parent
a8f945ae8e
commit
d5caf22d8c
4 changed files with 10 additions and 1 deletions
|
@ -3,6 +3,7 @@ import define from '../../../define';
|
|||
import { detectUrlMine } from '../../../../../misc/detect-url-mine';
|
||||
import { ID } from '../../../../../misc/cafy-id';
|
||||
import { Emojis } from '../../../../../models';
|
||||
import { getConnection } from 'typeorm';
|
||||
|
||||
export const meta = {
|
||||
desc: {
|
||||
|
@ -47,4 +48,6 @@ export default define(meta, async (ps) => {
|
|||
url: ps.url,
|
||||
type,
|
||||
});
|
||||
|
||||
await getConnection().queryResultCache!.remove(['meta_emojis']);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue