diff options
Diffstat (limited to 'server/models/pod/pod.ts')
-rw-r--r-- | server/models/pod/pod.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/pod/pod.ts b/server/models/pod/pod.ts index 62d9e3c6c..e1088977f 100644 --- a/server/models/pod/pod.ts +++ b/server/models/pod/pod.ts | |||
@@ -32,7 +32,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da | |||
32 | type: DataTypes.STRING, | 32 | type: DataTypes.STRING, |
33 | allowNull: false, | 33 | allowNull: false, |
34 | validate: { | 34 | validate: { |
35 | isHost: function (value) { | 35 | isHost: value => { |
36 | const res = isHostValid(value) | 36 | const res = isHostValid(value) |
37 | if (res === false) throw new Error('Host not valid.') | 37 | if (res === false) throw new Error('Host not valid.') |
38 | } | 38 | } |