Skip to content

Commit

Permalink
fix(mod-search): fix export of cql files
Browse files Browse the repository at this point in the history
- add something  22

Closes: MSEARCH-762
  • Loading branch information
viacheslavpoliakov committed Jun 7, 2024
1 parent 7046649 commit 7317d08
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ public ResourceIdsJob createStreamJob(ResourceIdsJob job, String tenantId) {

log.info("Attempts to create streamJob by [resourceIdsJob: {}]", entity);
log.info("[SLY] *** tenantId: {}", tenantId);
var savedJob = consortiumTenantExecutor.execute(() -> saveAndRun(entity, tenantId));
boolean isNotShared = !tenantId.equalsIgnoreCase("consortium")
&& entity.getQuery().contains("shared==\"false\"");
var savedJob = isNotShared
? saveAndRun(entity, tenantId)
: consortiumTenantExecutor.execute(() -> saveAndRun(entity, tenantId));
log.info("[SLY] *** SIMPLE: {}, savedJob: {}", isNotShared, savedJob.toString());

return resourceIdsJobMapper.convert(savedJob);
}
Expand Down

0 comments on commit 7317d08

Please sign in to comment.