Commit f29fd230 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 5c618419
...@@ -52,7 +52,7 @@ async function run() { ...@@ -52,7 +52,7 @@ async function run() {
} }
console.log(adder) console.log(adder)
createConfileADV(JSON.stringify(adder, null, 2))
...@@ -105,7 +105,7 @@ function createfileADV(data) { ...@@ -105,7 +105,7 @@ function createfileADV(data) {
function createConfileADV(data) { function createConfileADV(data) {
// console.log(data) // console.log(data)
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
fs.writeFile('con1.json', data, 'utf8', function (err) { fs.writeFile('con3.json', data, 'utf8', function (err) {
if (err) reject(err); if (err) reject(err);
else resolve(data); 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