mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
fetch subscriptions
This commit is contained in:
@@ -47,6 +47,12 @@ func (as *SubscriptionService) GetAll(am *models.Auth, walletId string, filtered
|
|||||||
if walletId != "" {
|
if walletId != "" {
|
||||||
query = query.Where("? = ?", pg.Ident("wallet_id"), walletId)
|
query = query.Where("? = ?", pg.Ident("wallet_id"), walletId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, sub := range *wm {
|
||||||
|
if sub.HasNew() {
|
||||||
|
as.SubToTrans(&sub)
|
||||||
|
}
|
||||||
|
}
|
||||||
FilteredResponse(query, wm, filtered)
|
FilteredResponse(query, wm, filtered)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user