Fix createdAt/updatedAt issues
authorChocobozzz <me@florianbigard.com>
Fri, 26 Apr 2019 07:16:43 +0000 (09:16 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 26 Apr 2019 07:16:43 +0000 (09:16 +0200)
server/models/application/application.ts
server/models/video/video-views.ts

index a02208b4e13b893fd07ecd11d1678a599f144cc2..81320b9afeafae058c72947b2c3b1accca5b06b0 100644 (file)
@@ -10,7 +10,8 @@ import { AccountModel } from '../account/account'
   ]
 }))
 @Table({
-  tableName: 'application'
+  tableName: 'application',
+  timestamps: false
 })
 export class ApplicationModel extends Model<ApplicationModel> {
 
index 6071e8c22297ddcbf5127a97df7838a21037236f..40db5effdbf54507c870f1c011d61128dafa1694 100644 (file)
@@ -4,6 +4,7 @@ import * as Sequelize from 'sequelize'
 
 @Table({
   tableName: 'videoView',
+  updatedAt: false,
   indexes: [
     {
       fields: [ 'videoId' ]