-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: TypeError occurs during export #9481
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -349,13 +349,12 @@ class ExportService { | |||||
|
||||||
const output = fs.createWriteStream(zipFile); | ||||||
|
||||||
// pipe archive data to the file | ||||||
const stream = pipeline(archive, output); | ||||||
|
||||||
// finalize the archive (ie we are done appending files but streams have to finish yet) | ||||||
// 'close', 'end' or 'finish' may be fired right after calling this method so register to them beforehand | ||||||
archive.finalize(); | ||||||
await finished(stream); | ||||||
|
||||||
// pipe archive data to the file | ||||||
await pipeline(archive, output); | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://redmine.weseek.co.jp/issues/159015 の修正 バグの原因
finaly ブロックが実行されない原因
そのため There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
logger.info(`zipped GROWI data into ${zipFile} (${archive.pointer()} bytes)`); | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://redmine.weseek.co.jp/issues/158989 の修正
以下のエラー内容通り、await して promise instance を渡さないように修正