mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-05 01:13:16 +09:00
26 lines
661 B
TypeScript
26 lines
661 B
TypeScript
import define from '../../../define';
|
|
import { deliverQueue, inboxQueue, dbQueue, objectStorageQueue } from '../../../../../queue';
|
|
|
|
export const meta = {
|
|
tags: ['admin'],
|
|
|
|
requireCredential: true,
|
|
requireModerator: true,
|
|
|
|
params: {}
|
|
};
|
|
|
|
export default define(meta, async (ps) => {
|
|
const deliverJobCounts = await deliverQueue.getJobCounts();
|
|
const inboxJobCounts = await inboxQueue.getJobCounts();
|
|
const dbJobCounts = await dbQueue.getJobCounts();
|
|
const objectStorageJobCounts = await objectStorageQueue.getJobCounts();
|
|
|
|
return {
|
|
deliver: deliverJobCounts,
|
|
inbox: inboxJobCounts,
|
|
db: dbJobCounts,
|
|
objectStorage: objectStorageJobCounts,
|
|
};
|
|
});
|