summaryrefslogtreecommitdiff
path: root/src/queue/processors/export-following.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue/processors/export-following.ts')
-rw-r--r--src/queue/processors/export-following.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue/processors/export-following.ts b/src/queue/processors/export-following.ts
index 13ba0888f0..e6521d0652 100644
--- a/src/queue/processors/export-following.ts
+++ b/src/queue/processors/export-following.ts
@@ -48,7 +48,7 @@ export async function exportFollowing(job: bq.Job, done: any): Promise<void> {
if (followings.length === 0) {
ended = true;
- job.reportProgress(100);
+ if (job.reportProgress) job.reportProgress(100);
break;
}
@@ -74,7 +74,7 @@ export async function exportFollowing(job: bq.Job, done: any): Promise<void> {
followerId: user._id,
});
- job.reportProgress(exportedCount / total);
+ if (job.reportProgress) job.reportProgress(exportedCount / total);
}
stream.end();