Skip to content

Commit ca05aae

Browse files
committed
allow more characters in notification body
1 parent 3f5ee43 commit ca05aae

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/edu/tamu/app/model/Notification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class Notification extends AbstractScheduler {
2222
@Column(nullable = false)
2323
private String name;
2424

25-
@Column(nullable = false)
25+
@Column(columnDefinition = "text", nullable = false)
2626
private String body;
2727

2828
@Column(nullable = false)

src/main/java/edu/tamu/app/model/validation/NotificationValidator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public NotificationValidator() {
1414
String bodyProperty = "body";
1515
this.addInputValidator(new InputValidator(InputValidationType.required, "Notifications require a body", bodyProperty, true));
1616
this.addInputValidator(new InputValidator(InputValidationType.minlength, "Notification body must be at least 3 characters", bodyProperty, 3));
17-
this.addInputValidator(new InputValidator(InputValidationType.maxlength, "Notifications must be no more than 5000 cahracters", bodyProperty, 5000));
1817

1918
String locationsProperty = "locations";
2019
this.addInputValidator(new InputValidator(InputValidationType.required, "Notifications must have a display location", locationsProperty, true));

0 commit comments

Comments
 (0)