Skip to content
Snippets Groups Projects

fix: avoid to send publication indexed message when publication not completed nor deleted

1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -130,7 +130,10 @@ public class IndexingProcessingService extends AouService {
} catch (Exception e) {
log.error("Unable to index object {}", publicationId, e);
} finally {
if (publication != null && !StringTool.isNullOrEmpty(publication.getArchiveId())) {
if (publication != null
&& (publication.getStatus() == Publication.PublicationStatus.COMPLETED
|| publication.getStatus() == Publication.PublicationStatus.DELETED)
&& !StringTool.isNullOrEmpty(publication.getArchiveId())) {
List<String> listCnIndividus = new ArrayList<>();
if (publicationIndexEntry != null) {
listCnIndividus = publicationIndexEntry.getContributorsCnIndividus();
Loading