-
Notifications
You must be signed in to change notification settings - Fork 191
Add missing SetDashboardParams #117
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
base: master
Are you sure you want to change the base?
Conversation
1 similar comment
GiedriusS
left a comment
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.
Looks good but one suggestion. Sorry for the late response. I think we should help our users by using a more strict type. Let me know what do you think.
| newBoard.FolderID = params.FolderID | ||
| newBoard.Overwrite = params.Overwrite | ||
| newBoard.Message = params.Message | ||
| newBoard.Refresh = params.Refresh |
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.
Then do:
| newBoard.Refresh = params.Refresh | |
| newBoard.Refresh = params.Refresh.Round(time.Second).String() |
| FolderID int | ||
| Overwrite bool | ||
| Message string | ||
| Refresh string |
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.
Let's do:
| Refresh string | |
| Refresh time.Duration |
Add missing fields
messageandrefreshforPOST /api/dashboards/dbcall.