Fix possible github API Exceeded error
All checks were successful
ci / Image build (push) Successful in 2m10s
ci / Deployment (push) Successful in 22s

This commit is contained in:
Joris Bertomeu
2025-08-26 11:05:29 +02:00
parent 9b288ebd63
commit 478e154d5d

View File

@@ -154,7 +154,7 @@ const checkDownloaderUpdate = async () => {
localInfos,
remoteInfos
},
newReleaseAvailable: localInfos?.version ? parseInt(localInfos.version) !== remoteInfos?.id : remoteInfos?.name || false,
newReleaseAvailable: remoteInfos ? localInfos?.version ? parseInt(localInfos.version) !== remoteInfos?.id : remoteInfos?.name || false : false,
filsIsPresent: localInfos?.stat ? true : false
}
} catch(e) {
@@ -292,7 +292,7 @@ const getLatestGithubReleaseAssetUrl = async (owner, repo, assetName) => {
}
} catch (error) {
console.error('Erreur:', error.message);
throw error;
return null;
}
}