mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
* wip * wip * wip * wip * wip * wip * wip * Update core.ts * wip * wip * #7361 * delete network chart * federationChart強化 apRequestChart追加 * tweak
14 lines
449 B
TypeScript
14 lines
449 B
TypeScript
import * as Bull from 'bull';
|
|
import { resyncCharts } from './resync-charts';
|
|
import { cleanCharts } from './clean-charts';
|
|
|
|
const jobs = {
|
|
resyncCharts,
|
|
cleanCharts,
|
|
} as Record<string, Bull.ProcessCallbackFunction<Record<string, unknown>> | Bull.ProcessPromiseFunction<Record<string, unknown>>>;
|
|
|
|
export default function(dbQueue: Bull.Queue<Record<string, unknown>>) {
|
|
for (const [k, v] of Object.entries(jobs)) {
|
|
dbQueue.process(k, v);
|
|
}
|
|
}
|