This commit is contained in:
Tom Hu 2021-07-07 17:30:58 -07:00
parent 79bc42cc5a
commit a3fb32f507
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ try {
err ? `: ${err}` : '',
);
}
fs.writeFileSync(res.body, filename);
fs.writeFileSync(filename, body);
fs.chmodSync(filename, '777');
if (fs.existsSync(filename)) {
console.log('file exists');