Fix an issue with funding links not being updated properly

This commit is contained in:
jliddev
2022-05-13 00:02:32 -05:00
parent 30bf4c2dc9
commit 0745eef555

View File

@@ -1322,6 +1322,10 @@ export class AddonService {
addon.downloadUrl = latestFile.downloadUrl || addon.downloadUrl;
}
if (Array.isArray(result.fundingLinks)) {
addon.fundingLinks = result.fundingLinks;
}
// If the release ID hasn't changed we don't really need to update the whole record
if (!!latestFile?.externalId && latestFile.externalId === addon.externalLatestReleaseId) {
continue;