From 54d82e0c8f92d94e4dc73c8523217060a5eeffb0 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Mon, 3 Jun 2024 13:18:52 +0700 Subject: [PATCH] fix: RowsPerPage nodes API return zero Forget to set RowsPerPage response --- internal/monero/monero.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/monero/monero.go b/internal/monero/monero.go index 16c9c63..df0206b 100644 --- a/internal/monero/monero.go +++ b/internal/monero/monero.go @@ -166,6 +166,8 @@ func (r *MoneroRepo) Nodes(q QueryNodes) (Nodes, error) { var nodes Nodes + nodes.RowsPerPage = q.RowsPerPage + qTotal := fmt.Sprintf(` SELECT COUNT(id) AS total_rows