Skip to content

Commit 188aa58

Browse files
committed
[eas-cli] use correct logic to determine whether artifacts expired in eas build:run
1 parent d9e6643 commit 188aa58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eas-cli/src/run/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function isAab(build: BuildFragment): boolean {
55
}
66

77
function didArtifactsExpire(build: BuildFragment): boolean {
8-
return new Date().getTime() - new Date(build.completedAt).getTime() > 30 * 24 * 60 * 60 * 1000; // 30 days
8+
return new Date().getTime() > new Date(build.expirationDate).getTime(); // 30 days
99
}
1010

1111
export function isRunnableOnSimulatorOrEmulator(build: BuildFragment): boolean {

0 commit comments

Comments
 (0)