Fixed duedate spelling issue (#79)
This commit is contained in:
@ -32,7 +32,7 @@ const (
|
||||
// @Produce json
|
||||
// @Param p query int false "The page number. Used for pagination. If not provided, the first page of results is returned."
|
||||
// @Param s query string false "Search tasks by task text."
|
||||
// @Param sort query string false "The sorting parameter. Possible values to sort by are priority, prioritydesc, priorityasc, dueadate, dueadatedesc, dueadateasc."
|
||||
// @Param sort query string false "The sorting parameter. Possible values to sort by are priority, prioritydesc, priorityasc, duedate, duedatedesc, duedateasc."
|
||||
// @Param startdate query int false "The start date parameter to filter by. Expects a unix timestamp. If no end date, but a start date is specified, the end date is set to the current time."
|
||||
// @Param enddate query int false "The end date parameter to filter by. Expects a unix timestamp. If no start date, but an end date is specified, the start date is set to the current time."
|
||||
// @Security JWTKeyAuth
|
||||
@ -53,9 +53,9 @@ func (t *ListTask) ReadAll(search string, a web.Auth, page int) (interface{}, er
|
||||
sortby = SortTasksByPriorityDesc
|
||||
case "priorityasc":
|
||||
sortby = SortTasksByPriorityAsc
|
||||
case "dueadate":
|
||||
case "duedate":
|
||||
sortby = SortTasksByDueDateDesc
|
||||
case "dueadatedesc":
|
||||
case "duedatedesc":
|
||||
sortby = SortTasksByDueDateDesc
|
||||
case "duedateasc":
|
||||
sortby = SortTasksByDueDateAsc
|
||||
|
@ -440,7 +440,7 @@ func TestListTask_ReadAll(t *testing.T) {
|
||||
{
|
||||
name: "ReadAll ListTasks sorted by due date default desc",
|
||||
fields: fields{
|
||||
Sorting: "dueadate",
|
||||
Sorting: "duedate",
|
||||
},
|
||||
args: args{
|
||||
search: "",
|
||||
@ -466,7 +466,7 @@ func TestListTask_ReadAll(t *testing.T) {
|
||||
{
|
||||
name: "ReadAll ListTasks sorted by due date desc",
|
||||
fields: fields{
|
||||
Sorting: "dueadatedesc",
|
||||
Sorting: "duedatedesc",
|
||||
},
|
||||
args: args{
|
||||
search: "",
|
||||
|
Reference in New Issue
Block a user