Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ public SearchResponse<Individual> findById(String tenantId, List<String> ids, St

// If the list of IDs is not empty, proceed to fetch from the database
// add the schema placeholder to the query
String individualQuery = String.format(getQuery("SELECT * FROM %s.individual WHERE %s IN (:ids)",
String individualQuery = String.format(getQuery("SELECT * FROM %s.individual WHERE %s IN (:ids) AND tenantId = :tenantId",
includeDeleted), SCHEMA_REPLACE_STRING , idColumn);
Map<String, Object> paramMap = new HashMap<>();
paramMap.put("ids", ids);
paramMap.put("tenantId", tenantId);

// replace the schema placeholder with the tenantId
individualQuery = multiStateInstanceUtil.replaceSchemaPlaceholder(individualQuery, tenantId);
Expand Down