Skip to content

Commit

Permalink
fix: save function not returning the model (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbatalhaStch committed Sep 22, 2023
1 parent aec0521 commit 2c2eb4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Attachment/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ async function saveWithAttachments() {
} else {
await commit(this)
}
return this
} catch (error) {
await rollback(this)
throw error
Expand Down

0 comments on commit 2c2eb4b

Please sign in to comment.