🐛 Fix storage bug when setVariableHistory conflicts
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user