From fd621ca5ae65ba82eb3d53109e6ed9a4c265a0d0 Mon Sep 17 00:00:00 2001 From: Will Vincent Date: Mon, 21 Jan 2019 03:04:24 -0600 Subject: [PATCH] fix(trait): syntax error (#37) --- app/Models/Traits/NoTimestamp.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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, + }, }) } }