Skip to content
Snippets Groups Projects
Commit 8da2a2e2 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

#1065734 Duplicate merge error

parent 0827485a
No related branches found
No related tags found
No related merge requests found
......@@ -1107,12 +1107,11 @@ _DuplicateScannerUtils._migrateParticipantsToNewContact = function (pTableName,
.where([pTableName, pContactIdColumn], pTargetContactId)
.arrayColumn();
var updateCount = newWhere([pTableName, pAssignableIdColumn], excludedIds, SqlBuilder.NOT_IN())
var updateCount = newWhereIfSet([pTableName, pAssignableIdColumn], excludedIds, SqlBuilder.NOT_IN())
.and([pTableName, pContactIdColumn], pSourceContactId)
.updateFields(new Map().set(pContactIdColumn, pTargetContactId), pTableName);
var deleteCount = newWhere([pTableName, pAssignableIdColumn], excludedIds, SqlBuilder.IN())
.and([pTableName, pContactIdColumn], pSourceContactId)
var deleteCount = newWhere([pTableName, pContactIdColumn], pSourceContactId)
.tableName(pTableName)
.deleteData();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment