2
0
Эх сурвалжийг харах

isNotification is required

sou 8 жил өмнө
parent
commit
651da6639f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      lib/form/comment.js

+ 1 - 1
lib/form/comment.js

@@ -10,6 +10,6 @@ module.exports = form(
   field('commentForm.comment_position').trim().toInt(),
   field('commentForm.is_markdown').trim().toBooleanStrict(),
 
-  field('slackNotificationForm.isNotification').trim().toBooleanStrict(),
+  field('slackNotificationForm.isNotification').trim().toBooleanStrict().required(),
   field('slackNotificationForm.notifSlackChannel').trim(),
 );