iceshrimp-legacy/src/queue/processors/system/index.ts
syuilo 4e4c559db6
Migrate to Chart.js v3 (#7896)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* 定期的にresync

* Update overview.vue

* wip

* wip
2021-10-22 05:36:48 +09:00

13 lines
326 B
TypeScript

import * as Bull from 'bull';
import { resyncCharts } from './resync-charts';
const jobs = {
resyncCharts,
} as Record<string, Bull.ProcessCallbackFunction<{}> | Bull.ProcessPromiseFunction<{}>>;
export default function(dbQueue: Bull.Queue<{}>) {
for (const [k, v] of Object.entries(jobs)) {
dbQueue.process(k, v);
}
}