fixed transaction pending

This commit is contained in:
Fran Jurmanović
2021-11-07 15:15:45 +01:00
parent 9e2b8322bd
commit 5c188f032e
4 changed files with 17 additions and 16 deletions

View File

@@ -67,9 +67,10 @@ func (wc *TransactionController) GetAll(c *gin.Context) {
fr := FilteredResponse(c)
wallet, _ := c.GetQuery("walletId")
transactionStatusId, _ := c.GetQuery("transactionStatusId")
noPendingQry, _ := c.GetQuery("noPending")
noPending := noPendingQry != ""
wc.TransactionService.GetAll(c, body, wallet, fr, transactionStatusId)
wc.TransactionService.GetAll(c, body, wallet, fr, noPending)
c.JSON(200, fr)
}