mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 08:15:41 +00:00
Update raw-api.js
This commit is contained in:
1 parent
fb1752b48a
commit
318269475e
1 file changed
+3
@@ -160,6 +160,9 @@ fs.readdir(directoryPath, function (err, files) {
|
||||
|
||||
processedCount++;
|
||||
if (processedCount === files.length) {
|
||||
v1.sort((a, b) => a.domain.localeCompare(b.subdomain));
|
||||
v2.sort((a, b) => a.domain.localeCompare(b.subdomain));
|
||||
|
||||
fs.writeFile("raw-api/index.json", JSON.stringify(v1), (err) => {
|
||||
if (err) throw err;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user