aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-26 09:16:43 +0200
committerChocobozzz <me@florianbigard.com>2019-04-26 09:16:43 +0200
commit4f0f2ab228d73dbec303914dd59b52f6cdaddf46 (patch)
tree25d5d561de6634b50c5dde562dff00b51674d9fc /server/models
parentc28bcdd10a5a0d661e51c96345bbd6c4dcc43bc9 (diff)
downloadPeerTube-4f0f2ab228d73dbec303914dd59b52f6cdaddf46.tar.gz
PeerTube-4f0f2ab228d73dbec303914dd59b52f6cdaddf46.tar.zst
PeerTube-4f0f2ab228d73dbec303914dd59b52f6cdaddf46.zip
Fix createdAt/updatedAt issues
Diffstat (limited to 'server/models')
-rw-r--r--server/models/application/application.ts3
-rw-r--r--server/models/video/video-views.ts1
2 files changed, 3 insertions, 1 deletions
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'
10 ] 10 ]
11})) 11}))
12@Table({ 12@Table({
13 tableName: 'application' 13 tableName: 'application',
14 timestamps: false
14}) 15})
15export class ApplicationModel extends Model<ApplicationModel> { 16export class ApplicationModel extends Model<ApplicationModel> {
16 17
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'
4 4
5@Table({ 5@Table({
6 tableName: 'videoView', 6 tableName: 'videoView',
7 updatedAt: false,
7 indexes: [ 8 indexes: [
8 { 9 {
9 fields: [ 'videoId' ] 10 fields: [ 'videoId' ]