From d68c1fb27e47fd1726dc33f14ad6d16384560c31 Mon Sep 17 00:00:00 2001 From: Raman Shekhawat Date: Fri, 13 Oct 2023 15:43:21 +0530 Subject: [PATCH] update --- src/job-handlers/collection-stats.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/job-handlers/collection-stats.ts b/src/job-handlers/collection-stats.ts index e85c8ba81..a129199c4 100644 --- a/src/job-handlers/collection-stats.ts +++ b/src/job-handlers/collection-stats.ts @@ -19,6 +19,9 @@ export default async (job: Queue.Job, done: Queue.DoneCallback) => { const { collectionId } = job.data const em = connection.manager + // eslint-disable-next-line no-console + console.log('collection-stats', collectionId) + const promises = [ em .createQueryBuilder() @@ -72,5 +75,5 @@ export default async (job: Queue.Job, done: Queue.DoneCallback) => { await em.update(Collection, { id: collectionId }, { stats }) - done(null, { id: collectionId }) + done(null, { id: collectionId, stats: stats.toJSON() }) }