From: Chocobozzz Date: Fri, 26 Apr 2019 07:16:43 +0000 (+0200) Subject: Fix createdAt/updatedAt issues X-Git-Tag: v1.3.0-rc.1~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f0f2ab228d73dbec303914dd59b52f6cdaddf46;p=oweals%2Fpeertube.git Fix createdAt/updatedAt issues --- 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' ]