Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing omitempty for send_after field #137

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

koushik-swaminathan
Copy link
Contributor

Fix for the issue

@coveralls
Copy link

coveralls commented Aug 3, 2023

Coverage Status

coverage: 39.184%. remained the same when pulling 4a03c4f on add-support-for-immediate-notification into fd5d61c on master.

@koushik-swaminathan koushik-swaminathan changed the title Removed validation for send_after to make it 0 by default Removing omitempty for send_after field Aug 3, 2023
@@ -558,7 +558,7 @@ func validateStep(step *og.Step, actionType ActionType) error {
if step.Contact.MethodOfContact == "" {
return errors.New("Method cannot be empty.")
}
if (actionType == CreateAlert || actionType == AssignedAlert) && step.SendAfter == nil {
if (actionType == CreateAlert || actionType == AssignedAlert) && step.SendAfter == nil && false {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this false wouldn't this condition be always false ?

@koushik-swaminathan koushik-swaminathan merged commit 07b7fdb into master Oct 18, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants