fix: RowsPerPage nodes API return zero

Forget to set RowsPerPage response
This commit is contained in:
ditatompel 2024-06-03 13:18:52 +07:00
parent 33efa8fd31
commit 54d82e0c8f
No known key found for this signature in database
GPG key ID: 31D3D06D77950979

View file

@ -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