aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Traits
diff options
context:
space:
mode:
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;