Skip to content

Commit

Permalink
fix: Close writeStream in location data upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
flozia authored and dependabot[bot] committed Aug 28, 2024
1 parent cfcccf0 commit 8ffc71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/build/uploadAutoCompleteLocations.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function writeFromRemoteFile({ url, writeStream }) {
return new Promise((resolve, reject) => {
https.get(url, (res) => {
res.on("end", () => {
resolve(res);
writeStream.close(() => resolve(res));
});
res.on("error", (error) => {
reject(error);
Expand Down

0 comments on commit 8ffc71b

Please sign in to comment.