Skip to content

Commit

Permalink
fix: deletedAt column leaking as side effect of object update while c…
Browse files Browse the repository at this point in the history
…reating a row (#10435)
  • Loading branch information
m-salman-afzal authored Dec 29, 2023
1 parent 7a58bbf commit 7de4890
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/persistence/SubjectExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,9 @@ export class SubjectExecutor {
// entities does not have virtual columns
if (column.isVirtual) return

// if column is deletedAt
if (column.isDeleteDate) return

// update nullable columns
if (column.isNullable) {
const columnValue = column.getEntityValue(subject.entity!)
Expand Down

0 comments on commit 7de4890

Please sign in to comment.