diff --git a/app/models/return-version.model.js b/app/models/return-version.model.js index e3946f274a..5739cb696a 100644 --- a/app/models/return-version.model.js +++ b/app/models/return-version.model.js @@ -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: {