aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
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 },