alter processor tests

This commit is contained in:
Jan Prochazka
2021-07-01 09:41:28 +02:00
parent 3791fd568c
commit 331b275105
2 changed files with 56 additions and 11 deletions

View File

@@ -217,7 +217,7 @@ function getTableConstraints(table: TableInfo) {
function createPairs(oldList, newList, additionalCondition = null) {
const res = [];
for (const a of oldList) {
const b = newList.find(x => x.pairingId == a.pairingId || (additionalCondition && additionalCondition(a, b)));
const b = newList.find(x => x.pairingId == a.pairingId || (additionalCondition && additionalCondition(a, x)));
if (b) {
res.push([a, b]);
} else {