Update raw-api.js

This commit is contained in:
William Harrison committed 2025-05-31 09:22:59 +08:00
1 parent fb1752b48a
commit 318269475e
1 file changed
+3
+3
View File
@@ -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;
});