Skip to content

Commit

Permalink
Update model attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks committed Aug 16, 2024
1 parent 2675039 commit c641744
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/return-version.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class ReturnVersionModel extends BaseModel {
return 'returnVersions'
}

// Defining which fields contain json allows us to insert an object without needing to stringify it first
static get jsonAttributes () {
return [
'mod_logs'
]
}

static get relationMappings () {
return {
licence: {
Expand Down

0 comments on commit c641744

Please sign in to comment.