We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe2ba0 commit 44519b3Copy full SHA for 44519b3
backend/src/database/repositories/organizationRepository.ts
@@ -1237,12 +1237,17 @@ class OrganizationRepository {
1237
}
1238
1239
1240
- for (const noMergeId of organization._source.uuid_arr_noMergeIds) {
1241
- identitiesPartialQuery.must_not.push({
1242
- term: {
1243
- uuid_organizationId: noMergeId,
1244
- },
1245
- })
+ if (
+ organization._source.uuid_arr_noMergeIds &&
+ organization._source.uuid_arr_noMergeIds.length > 0
+ ) {
+ for (const noMergeId of organization._source.uuid_arr_noMergeIds) {
+ identitiesPartialQuery.must_not.push({
1246
+ term: {
1247
+ uuid_organizationId: noMergeId,
1248
+ },
1249
+ })
1250
+ }
1251
1252
1253
const sameOrganizationsQueryBody = {
0 commit comments