diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2018-08-07 16:11:31 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-09 20:20:50 +0200 |
commit | e92f595ae8795ffc8906d84d95b2cc634ff34b72 (patch) | |
tree | 730b1b86600f8c3f258208314aba4c87bed1dad5 /server/sonar-web/src/main/js/apps/quality-profiles/utils.ts | |
parent | a8f14ced18503abb466fefead861ea3d60f7115a (diff) | |
download | sonarqube-e92f595ae8795ffc8906d84d95b2cc634ff34b72.tar.gz sonarqube-e92f595ae8795ffc8906d84d95b2cc634ff34b72.zip |
SONAR-11090 Use rulesUpdatedAt date for stagnant quality profiles
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/utils.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts b/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts index c0e23eeaf9f..e8f7c146052 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts +++ b/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts @@ -67,8 +67,8 @@ export function createFakeProfile(overrides?: any) { } export function isStagnant(profile: Profile): boolean { - if (profile.userUpdatedAt) { - const updateDate = parseDate(profile.userUpdatedAt); + if (profile.rulesUpdatedAt) { + const updateDate = parseDate(profile.rulesUpdatedAt); if (isValidDate(updateDate)) { return differenceInYears(new Date(), updateDate) >= 1; } |