2
0

🐛 Fix storage bug when setVariableHistory conflicts

This commit is contained in:
Baptiste Arnaud
2024-05-30 10:55:53 +02:00
parent 409c55308e
commit fa191fde8c

View File

@ -35,6 +35,7 @@ export const upsertResult = ({
...log,
details: formatLogDetails(log.details),
})),
skipDuplicates: true,
},
}
: undefined
@ -48,6 +49,7 @@ export const upsertResult = ({
value: item.value === null ? Prisma.JsonNull : item.value,
resultId: undefined,
})),
skipDuplicates: true,
},
} as Prisma.SetVariableHistoryItemUpdateManyWithoutResultNestedInput)
: undefined
@ -60,6 +62,7 @@ export const upsertResult = ({
...edge,
resultId: undefined,
})),
skipDuplicates: true,
},
}
: undefined