fix shouldSuspendGone and shouldSuspendNotResponding not working

This commit is contained in:
Hazelnoot 2025-06-25 22:34:15 -04:00
parent c80b4138f5
commit 63f2073af1

View file

@ -97,6 +97,8 @@ export class CollapsedQueueService implements OnApplicationShutdown {
latestRequestReceivedAt: maxDate(oldJob.latestRequestReceivedAt, newJob.latestRequestReceivedAt),
notRespondingSince: maxDate(oldJob.notRespondingSince, newJob.notRespondingSince),
shouldUnsuspend: oldJob.shouldUnsuspend || newJob.shouldUnsuspend,
shouldSuspendGone: oldJob.shouldSuspendGone || newJob.shouldSuspendGone,
shouldSuspendNotResponding: oldJob.shouldSuspendNotResponding || newJob.shouldSuspendNotResponding,
notesCountDelta: (oldJob.notesCountDelta ?? 0) + (newJob.notesCountDelta ?? 0),
usersCountDelta: (oldJob.usersCountDelta ?? 0) + (newJob.usersCountDelta ?? 0),
followingCountDelta: (oldJob.followingCountDelta ?? 0) + (newJob.followingCountDelta ?? 0),