Skip to content

Commit

Permalink
Fix audit duplication issue: omit id (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaaax authored Oct 21, 2024
1 parent 0bf603a commit 8953cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confiture-rest-api/src/audits/audit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ export class AuditService {

transverseElementsPage: {
create: {
...originalAudit.transverseElementsPage,
...omit(originalAudit.transverseElementsPage, ["id"]),
results: {
create: originalAudit.transverseElementsPage.results.map((r) => ({
...omit(r, ["id", "pageId"]),
Expand Down

0 comments on commit 8953cd0

Please sign in to comment.