~netlandish/links-dev

links: Add missing order value to queries v1 APPLIED

Peter Sanchez: 1
 Add missing order value to queries

 1 files changed, 1 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.code.netlandish.com/~netlandish/links-dev/patches/138/mbox | git am -3
Learn more about email & git

[PATCH links] Add missing order value to queries Export this patch

---
Missed this in the previous patch sent. Oops.

 core/routes.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/routes.go b/core/routes.go
index 76ad4f8..18fde44 100644
--- a/core/routes.go
+++ b/core/routes.go
@@ -2279,6 +2279,7 @@ func (s *Service) OrgLinksList(c echo.Context) error {
	orderDir := c.QueryParam("order")
	if orderDir != "" && (orderDir == "DESC" || orderDir == "ASC") {
		op.Var("order", orderDir)
		queries.Set("order", orderDir)
	} else {
		orderDir = "DESC" // default
	}
-- 
2.47.2
Applied.

To git@git.code.netlandish.com:~netlandish/links
   4b576a8..8eb0e19  master -> master