aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Traits
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-05 11:22:49 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-05 11:22:49 +0200
commit29b8334b060dc0c05a509d523ead4b3a30229fef (patch)
tree4dbfcfb90a3eff31acd219b27557bbdc594f589f /app/Models/Traits
parentAdd cookie notice to login page (diff)
downloadferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.tar.gz
ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.tar.zst
ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.zip
Add eslint
Diffstat (limited to 'app/Models/Traits')
-rw-r--r--app/Models/Traits/NoTimestamp.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/Models/Traits/NoTimestamp.js b/app/Models/Traits/NoTimestamp.js
index edd07f0..c647428 100644
--- a/app/Models/Traits/NoTimestamp.js
+++ b/app/Models/Traits/NoTimestamp.js
@@ -1,16 +1,15 @@
1'use strict'
2 1
3class NoTimestamp { 2class NoTimestamp {
4 register (Model) { 3 register(Model) {
5 Object.defineProperties(Model, { 4 Object.defineProperties(Model, {
6 createdAtColumn: { 5 createdAtColumn: {
7 get: () => null, 6 get: () => null,
8 }, 7 },
9 updatedAtColumn: { 8 updatedAtColumn: {
10 get: () => null, 9 get: () => null,
11 } 10 },
12 }) 11 });
13 } 12 }
14} 13}
15 14
16module.exports = NoTimestamp 15module.exports = NoTimestamp;