mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-14 12:16:52 +00:00
Update raw-api.js
This commit is contained in:
1 parent
afb49082bb
commit
33909ec5de
1 file changed
+1
-1
+1
-1
@@ -36,7 +36,7 @@ fs.readdir(directoryPath, function (err, files) {
|
||||
combinedArray = combinedArray.concat(dataArray);
|
||||
|
||||
if(combinedArray.length === files.length) {
|
||||
fs.writeFile("raw-api/index.json", JSON.stringify(combinedArray), (err) => {
|
||||
fs.writeFile("utils/raw.json", JSON.stringify(combinedArray), (err) => {
|
||||
if(err) throw err;
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user