-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(kno-3533): schedules support #10
feat(kno-3533): schedules support #10
Conversation
@@ -126,6 +126,14 @@ private static string UrlEncodeAndClean(string value) | |||
result.Add(new KeyValuePair<string, string>(key, s)); | |||
break; | |||
|
|||
case int i: | |||
result.Add(new KeyValuePair<string, string>(key, i.ToString())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found out passing options like page_size: 1
was not working unless using a string instead of a number.
Decided to fix it.
@@ -23,7 +23,7 @@ public class MessagesResource : BaseResource | |||
/// <returns>A paginated Message response.</returns> | |||
public async Task<PaginatedResponse<Message>> List(Dictionary<string, object> options = null) | |||
{ | |||
if (options.ContainsKey("trigger_data")) | |||
if (options != null && options.ContainsKey("trigger_data")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default options
value is null, so this was breaking when not passing an options Dictionary
a596cc2
to
fe4f73b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 lgtm
Adds support for working with workflow schedules:
Also fixes 2 bugs: