diff --git a/.gitignore b/.gitignore index 9d16f0f..389d9b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules/ /package-lock.json /zips/ +/aicode/ diff --git a/src/rest/aicode/getCode.js b/src/rest/aicode/getCode.js index bb170c4..c2d97b8 100644 --- a/src/rest/aicode/getCode.js +++ b/src/rest/aicode/getCode.js @@ -10,7 +10,7 @@ module.exports = { dbUtils.query(sql).then(res => { let info = res?.[0] if (info?.id) { - let path = `/home/deploy/node-service/aicode/${info.id}`, zipPath = `${path}/${info.id}.zip` + let path = `./aicode/${info.id}`, zipPath = `${path}/${info.id}.zip` generate(info, path).then(() => { fse.pathExists(path, (err, exists) => { console.log(`${path}=========>${exists}`)