fix: no response when buildImage

This commit is contained in:
Lin, Hung-Shin committed 2023-12-20 13:31:08 +08:00
1 parent 1bca61da40
commit 27c5794700
2 files changed
+2 -1

No files matched your search

-1
View File
@@ -17,7 +17,6 @@ buildImages()
.then((result) => {
logger.info(result)
logger.info('Done!')
process.exit(0)
})
.catch((err) => {
logger.error(err)
+2
View File
@@ -109,6 +109,7 @@ export function buildQuestImage(questPath, questId) {
if (err) {
reject(err)
}
if (response) {
response.on('data', (data) => {
// Process the data (this could be Docker build output)
try {
@@ -135,6 +136,7 @@ export function buildQuestImage(questPath, questId) {
reject(error)
})
}
}
)
})
}