Commit 15876164 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent eeec0e86
......@@ -52,7 +52,7 @@ async function lastCheck(param1,param2,param3,arr5) {
{
let z={maxReserve:param1,balance:param2,bad:param3}
await createfileADV(JSON.stringify(z))
await createfileTorob(param3,JSON.stringify(arr5, null, 2))
await createfileTorob(param3.toString(),JSON.stringify(arr5, null, 2))
}
......@@ -221,7 +221,7 @@ function createfileADV(data) {
function createfileTorob(name,data) {
// console.log(data)
return new Promise(function (resolve, reject) {
fs.writeFile(name+'.json', data, 'utf8', function (err) {
fs.writeFile('torob/'+name+'.json', data, 'utf8', function (err) {
if (err) reject(err);
else resolve(data);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment