This commit is contained in:
William Harrison
2025-01-02 20:33:37 +08:00
parent 7f6467ea41
commit 55b60ba3f7
2 changed files with 3 additions and 7 deletions
+1 -3
View File
@@ -48,9 +48,7 @@ t("New JSON files must be owned by the PR author", async (t) => {
const headDomainsFiles = fs.readdirSync(headDomainsPath);
const newFiles = headDomainsFiles.filter((file) => !fs.existsSync(path.join(domainsPath, file)));
console.log("New files", newFiles);
const newFiles = domainsPath.filter((file) => !fs.existsSync(path.join(headDomainsFiles, file)));
await Promise.all(
newFiles.map(async (file) => {