aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/author.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/author.ts')
-rw-r--r--server/models/video/author.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/author.ts b/server/models/video/author.ts
index 3222c4834..c30cc306d 100644
--- a/server/models/video/author.ts
+++ b/server/models/video/author.ts
@@ -20,7 +20,7 @@ export default function defineAuthor (sequelize: Sequelize.Sequelize, DataTypes:
20 type: DataTypes.STRING, 20 type: DataTypes.STRING,
21 allowNull: false, 21 allowNull: false,
22 validate: { 22 validate: {
23 usernameValid: function (value) { 23 usernameValid: value => {
24 const res = isUserUsernameValid(value) 24 const res = isUserUsernameValid(value)
25 if (res === false) throw new Error('Username is not valid.') 25 if (res === false) throw new Error('Username is not valid.')
26 } 26 }