diff options
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 | }, |