diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-28 14:51:00 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-28 14:51:00 +0100 |
commit | c60774b05b12d262ed27d8efeb0905ac283eeebb (patch) | |
tree | b8bec48f57e19f263819ed09a8696060790bc173 /server/models | |
parent | 7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c (diff) | |
download | PeerTube-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.ts | 6 |
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 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | import { isHostValid, logger } from '../../helpers' | 2 | import { isHostValid, logger } from '../../helpers' |
3 | import { FRIEND_SCORE, SERVERS_SCORE } from '../../initializers' | 3 | import { SERVERS_SCORE } from '../../initializers' |
4 | import { addMethodsToModel } from '../utils' | 4 | import { addMethodsToModel } from '../utils' |
5 | import { ServerAttributes, ServerInstance, ServerMethods } from './server-interface' | 5 | import { 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 | }, |