aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-28 14:51:00 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-28 14:51:00 +0100
commitc60774b05b12d262ed27d8efeb0905ac283eeebb (patch)
treeb8bec48f57e19f263819ed09a8696060790bc173 /server/models
parent7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c (diff)
downloadPeerTube-c60774b05b12d262ed27d8efeb0905ac283eeebb.tar.gz
PeerTube-c60774b05b12d262ed27d8efeb0905ac283eeebb.tar.zst
PeerTube-c60774b05b12d262ed27d8efeb0905ac283eeebb.zip
Remove max duration/filesize constraints
Diffstat (limited to 'server/models')
-rw-r--r--server/models/server/server.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/server/server.ts b/server/models/server/server.ts
index fcd7be090..ebd216b08 100644
--- a/server/models/server/server.ts
+++ b/server/models/server/server.ts
@@ -1,6 +1,6 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2import { isHostValid, logger } from '../../helpers' 2import { isHostValid, logger } from '../../helpers'
3import { FRIEND_SCORE, SERVERS_SCORE } from '../../initializers' 3import { SERVERS_SCORE } from '../../initializers'
4import { addMethodsToModel } from '../utils' 4import { addMethodsToModel } from '../utils'
5import { ServerAttributes, ServerInstance, ServerMethods } from './server-interface' 5import { ServerAttributes, ServerInstance, ServerMethods } from './server-interface'
6 6
@@ -22,11 +22,11 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da
22 }, 22 },
23 score: { 23 score: {
24 type: DataTypes.INTEGER, 24 type: DataTypes.INTEGER,
25 defaultValue: FRIEND_SCORE.BASE, 25 defaultValue: SERVERS_SCORE.BASE,
26 allowNull: false, 26 allowNull: false,
27 validate: { 27 validate: {
28 isInt: true, 28 isInt: true,
29 max: FRIEND_SCORE.MAX 29 max: SERVERS_SCORE.MAX
30 } 30 }
31 } 31 }
32 }, 32 },