Skip to content

Commit

Permalink
Fix edit sorting when sorting by updated_at (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored May 20, 2022
1 parent bf8a122 commit 4b34a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sqlx/querybuilder_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (qb *editQueryBuilder) buildQuery(filter models.EditQueryInput, userID uuid
query.AddArg(userID, userID, userID, userID, userID, userID)
}

query.Sort = getSort(filter.Sort.String(), filter.Direction.String(), "edits", nil)
query.Sort = getSort(filter.Sort.String(), filter.Direction.String()+nullsLast(), "edits", nil)

return query, nil
}
Expand Down

0 comments on commit 4b34a55

Please sign in to comment.