build(crypto-node): account for expired artifacts

This commit is contained in:
alina 🌸 2024-07-24 13:59:57 +03:00
parent e567966f67
commit 011e76c1b0
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -33,6 +33,7 @@ async function findArtifactsByHash(hash) {
.then((r) => r.artifacts) .then((r) => r.artifacts)
for (const it of artifacts) { for (const it of artifacts) {
if (it.expired) continue
const parts = it.name.split('-') const parts = it.name.split('-')
if (parts[0] === 'prebuilt' && if (parts[0] === 'prebuilt' &&