We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aaf9c7 commit b09de06Copy full SHA for b09de06
1 file changed
src/resolvers/projectNotifications.ts
@@ -144,6 +144,14 @@ export default {
144
throw new UserInputError('At least one channel is required');
145
}
146
147
+ if ((input.threshold !== undefined) !== (input.thresholdPeriod !== undefined)) {
148
+ throw new UserInputError('Both threshold and thresholdPeriod should be set or unset');
149
+ }
150
+
151
+ if (input.threshold < 1) {
152
+ throw new UserInputError('Threshold should be greater than 0');
153
154
155
return project.updateNotificationsRule(input);
156
},
157
0 commit comments