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