diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-10 11:44:08 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-10 11:44:08 +0900 |
| commit | 310371658bef90e8c982eaf94eea99c63617d7ab (patch) | |
| tree | fd8ffbedc1d2424f128f08c0d85d61a4846bdac9 /src/queue/processors/export-notes.ts | |
| parent | Hide unusable follow buttons (#4208) (diff) | |
| download | sharkey-310371658bef90e8c982eaf94eea99c63617d7ab.tar.gz sharkey-310371658bef90e8c982eaf94eea99c63617d7ab.tar.bz2 sharkey-310371658bef90e8c982eaf94eea99c63617d7ab.zip | |
重いのでジョブキュー無効化
Diffstat (limited to 'src/queue/processors/export-notes.ts')
| -rw-r--r-- | src/queue/processors/export-notes.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue/processors/export-notes.ts b/src/queue/processors/export-notes.ts index 4d973d015c..32e4cd1d6c 100644 --- a/src/queue/processors/export-notes.ts +++ b/src/queue/processors/export-notes.ts @@ -58,7 +58,7 @@ export async function exportNotes(job: bq.Job, done: any): Promise<void> { if (notes.length === 0) { ended = true; - job.reportProgress(100); + if (job.reportProgress) job.reportProgress(100); break; } @@ -83,7 +83,7 @@ export async function exportNotes(job: bq.Job, done: any): Promise<void> { userId: user._id, }); - job.reportProgress(exportedNotesCount / total); + if (job.reportProgress) job.reportProgress(exportedNotesCount / total); } await new Promise((res, rej) => { |