mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
fixed transaction pending
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user