Skip to content

Commit

Permalink
fix: prde-1918 Always update review delegation (#50)
Browse files Browse the repository at this point in the history
Since some properties can't be queried, the values must always be
updated
  • Loading branch information
stevoland authored Jan 16, 2025
2 parents d1b760f + dc410c7 commit a3283f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/plugins/reviewRequestDelegation.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ module.exports = class ReviewRequestDelegation extends ErrorStash {
}
})

const changes = this.mergeDeep.compareDeep(entry, comparableAttrs)
if (this.nop) {
const changes = this.mergeDeep.compareDeep(entry, comparableAttrs)

if (changes.hasChanges) {
if (this.nop) {
if (changes.hasChanges) {
return Promise.resolve([
new NopCommand(this.constructor.name, {
repo: slug,
Expand All @@ -137,10 +137,10 @@ module.exports = class ReviewRequestDelegation extends ErrorStash {
])
}

return this.update(slug, entry, safeAttrs)
return Promise.resolve()
}

return Promise.resolve()
return this.update(slug, entry, safeAttrs)
}

async update (slug, existing, attrs) {
Expand Down

0 comments on commit a3283f7

Please sign in to comment.