fix(continuous-deploy-fingerprint): correct expiration date logic for build validation (#307)

This commit is contained in:
Tharaka De Silva authored and GitHub committed 2024-09-19 14:48:07 -07:00
1 parent 141e1af34b
commit 4b7860b64d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -44697,7 +44697,7 @@ async function getBuildInfoWithFingerprintAsync({ cwd, platform, profile, finger
expo_1.BuildStatus.Finished,
].includes(build.status);
// if the build is expired or will expire within the next day,
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) < tomorrow : true;
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) > tomorrow : true;
return isValidStatus && isValidExpiry;
});
return buildsThatAreValid[0] ?? null;
+1 -1
View File
@@ -213,7 +213,7 @@ async function getBuildInfoWithFingerprintAsync({
BuildStatus.Finished,
].includes(build.status);
// if the build is expired or will expire within the next day,
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) < tomorrow : true;
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) > tomorrow : true;
return isValidStatus && isValidExpiry;
});