If an addon successfully returns, clear the warning type

This commit is contained in:
jliddev
2021-04-04 09:58:32 -05:00
parent a7a20dd848
commit 2ae138efca
2 changed files with 1 additions and 4 deletions

View File

@@ -325,10 +325,6 @@ export class CurseAddonProvider extends AddonProvider {
return response;
}
private sendRequest<T>(action: () => Promise<T>): Promise<T> {
return action.call(this);
}
public async getAll(installation: WowInstallation, addonIds: string[]): Promise<GetAllResult> {
if (!addonIds.length) {
return {

View File

@@ -1054,6 +1054,7 @@ export class AddonService {
addon.summary = result.summary;
addon.thumbnailUrl = result.thumbnailUrl;
addon.latestChangelog = latestFile?.changelog || addon.latestChangelog;
addon.warningType = undefined;
// If the release ID hasn't changed we don't really need to update the whole record
if (!!latestFile?.externalId && latestFile.externalId === addon.externalLatestReleaseId) {