Skip to content

Commit 6c4d025

Browse files
committed
update
1 parent eefd86e commit 6c4d025

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/cleanupAtlasTestLeftovers.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ async function main(): Promise<void> {
7676
);
7777

7878
const testOrg = await findTestOrganization(apiClient);
79-
const testProjects = await findAllTestProjects(apiClient, testOrg.id || "");
79+
if (!testOrg.id) {
80+
throw new Error("Test organization ID not found.");
81+
}
8082

83+
const testProjects = await findAllTestProjects(apiClient, testOrg.id);
8184
if (testProjects.length === 0) {
8285
console.log("No stale test projects found for cleanup.");
8386
return;

0 commit comments

Comments
 (0)