From 4f0f2ab228d73dbec303914dd59b52f6cdaddf46 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Apr 2019 09:16:43 +0200 Subject: [PATCH] Fix createdAt/updatedAt issues --- server/models/application/application.ts | 3 ++- server/models/video/video-views.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/models/application/application.ts b/server/models/application/application.ts index a02208b4e..81320b9af 100644 --- a/server/models/application/application.ts +++ b/server/models/application/application.ts @@ -10,7 +10,8 @@ import { AccountModel } from '../account/account' ] })) @Table({ - tableName: 'application' + tableName: 'application', + timestamps: false }) export class ApplicationModel extends Model { diff --git a/server/models/video/video-views.ts b/server/models/video/video-views.ts index 6071e8c22..40db5effd 100644 --- a/server/models/video/video-views.ts +++ b/server/models/video/video-views.ts @@ -4,6 +4,7 @@ import * as Sequelize from 'sequelize' @Table({ tableName: 'videoView', + updatedAt: false, indexes: [ { fields: [ 'videoId' ] -- 2.25.1