aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-abuse.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-abuse.ts')
-rw-r--r--server/models/video/video-abuse.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-abuse.ts b/server/models/video/video-abuse.ts
index f55a25e6a..df92609c0 100644
--- a/server/models/video/video-abuse.ts
+++ b/server/models/video/video-abuse.ts
@@ -22,7 +22,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da
22 type: DataTypes.STRING, 22 type: DataTypes.STRING,
23 allowNull: false, 23 allowNull: false,
24 validate: { 24 validate: {
25 reporterUsernameValid: function (value) { 25 reporterUsernameValid: value => {
26 const res = isVideoAbuseReporterUsernameValid(value) 26 const res = isVideoAbuseReporterUsernameValid(value)
27 if (res === false) throw new Error('Video abuse reporter username is not valid.') 27 if (res === false) throw new Error('Video abuse reporter username is not valid.')
28 } 28 }
@@ -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 reasonValid: function (value) { 35 reasonValid: value => {
36 const res = isVideoAbuseReasonValid(value) 36 const res = isVideoAbuseReasonValid(value)
37 if (res === false) throw new Error('Video abuse reason is not valid.') 37 if (res === false) throw new Error('Video abuse reason is not valid.')
38 } 38 }