Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
justraman committed Oct 13, 2023
1 parent 07688e3 commit d68c1fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/job-handlers/collection-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export default async (job: Queue.Job<JobData>, 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()
Expand Down Expand Up @@ -72,5 +75,5 @@ export default async (job: Queue.Job<JobData>, done: Queue.DoneCallback) => {

await em.update(Collection, { id: collectionId }, { stats })

done(null, { id: collectionId })
done(null, { id: collectionId, stats: stats.toJSON() })
}

0 comments on commit d68c1fb

Please sign in to comment.