From 105cf3e7d0e8567f7683923c7c7751ac971f0c5c Mon Sep 17 00:00:00 2001 From: public_host Date: Tue, 20 Apr 2021 13:29:54 +0800 Subject: [PATCH] fix --- hasaki-gen-crud/hasaki-gen-crud.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hasaki-gen-crud/hasaki-gen-crud.js b/hasaki-gen-crud/hasaki-gen-crud.js index 6abcc60..af73619 100644 --- a/hasaki-gen-crud/hasaki-gen-crud.js +++ b/hasaki-gen-crud/hasaki-gen-crud.js @@ -146,9 +146,13 @@ try { let httpFileName = path.join(fileDir, `auto_generated_http_${underscore_naming}_${fileBaseName}`) - fs.writeFile(crudFileName, `${package_src}\n\n${tmp[2]}`) + fs.writeFile(crudFileName, `${package_src}\n\n${tmp[2]}`, function () { - fs.writeFile(httpFileName, `${package_src}\n\n${tmp[3]}`) + }) + + fs.writeFile(httpFileName, `${package_src}\n\n${tmp[3]}`, function () { + + }) // vscode.window.showErrorMessage(res) }).catch(error => {