Backend support for filtering by votes (#13813)

* Backend support for filtering by votes

* remove the condition

* checkstyle
This commit is contained in:
07Himank 2023-11-03 12:32:31 +05:30 committed by GitHub
parent b82c33574f
commit 1c56d8c181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -827,9 +827,7 @@ public abstract class EntityRepository<T extends EntityInterface> {
.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);
}
@ -874,7 +872,7 @@ public abstract class EntityRepository<T extends EntityInterface> {
.withTimestamp(System.currentTimeMillis())
.withCurrentVersion(originalEntity.getVersion())
.withPreviousVersion(change.getPreviousVersion());
postUpdate(originalEntity, originalEntity);
return new PutResponse<>(Status.OK, changeEvent, RestUtil.ENTITY_FIELDS_CHANGED);
}