Skip to content

Commit

Permalink
Backend support for filtering by votes (#13813)
Browse files Browse the repository at this point in the history
* Backend support for filtering by votes

* remove the condition

* checkstyle
  • Loading branch information
07Himank authored Nov 3, 2023
1 parent b82c335 commit 1c56d8c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,7 @@ public PutResponse<T> addFollower(String updatedBy, UUID entityId, UUID userId)
.withCurrentVersion(entity.getVersion())
.withPreviousVersion(change.getPreviousVersion());
entity.setChangeDescription(change);
if (supportsSearch) {
postUpdate(entity, entity);
}
postUpdate(entity, entity);
return new PutResponse<>(Status.OK, changeEvent, RestUtil.ENTITY_FIELDS_CHANGED);
}

Expand Down Expand Up @@ -874,7 +872,7 @@ public PutResponse<T> updateVote(String updatedBy, UUID entityId, VoteRequest re
.withTimestamp(System.currentTimeMillis())
.withCurrentVersion(originalEntity.getVersion())
.withPreviousVersion(change.getPreviousVersion());

postUpdate(originalEntity, originalEntity);
return new PutResponse<>(Status.OK, changeEvent, RestUtil.ENTITY_FIELDS_CHANGED);
}

Expand Down

0 comments on commit 1c56d8c

Please sign in to comment.