diff --git a/app/Models/Traits/NoTimestamp.js b/app/Models/Traits/NoTimestamp.js index 45f210e..58c9340 100644 --- a/app/Models/Traits/NoTimestamp.js +++ b/app/Models/Traits/NoTimestamp.js @@ -2,12 +2,13 @@ class NoTimestamp { register (Model) { - Object.defineProperties(Model, 'createdAtColumn', { - get () { return null } - }) - - Object.defineProperties(Model, 'updatedAtColumn', { - get () { return null } + Object.defineProperties(Model, { + createdAtColumn: { + get: () => null, + }, + updatedAtColumn: { + get: () => null, + }, }) } }