From d365b9f6348585cbaee2effd7fe760b9e36fb075 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 8 Mar 2019 21:30:12 +0900 Subject: [PATCH] Fix bug --- CHANGELOG.md | 4 ++++ src/server/api/endpoints/admin/queue/stats.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb4a17489..ac5d87fd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ ChangeLog ========= +unreleased +---------- +* 管理画面の各種ジョブ数がおかしい問題を修正 + 10.92.2 ---------- * 管理画面で各種ジョブ数を一覧できるように diff --git a/src/server/api/endpoints/admin/queue/stats.ts b/src/server/api/endpoints/admin/queue/stats.ts index a90daa398..baeecba30 100644 --- a/src/server/api/endpoints/admin/queue/stats.ts +++ b/src/server/api/endpoints/admin/queue/stats.ts @@ -1,5 +1,5 @@ import define from '../../../define'; -import { deliverQueue } from '../../../../../queue'; +import { deliverQueue, inboxQueue } from '../../../../../queue'; export const meta = { tags: ['admin'], @@ -12,7 +12,7 @@ export const meta = { export default define(meta, async (ps) => { const deliverJobCounts = await deliverQueue.getJobCounts(); - const inboxJobCounts = await deliverQueue.getJobCounts(); + const inboxJobCounts = await inboxQueue.getJobCounts(); return { deliver: deliverJobCounts,