get the vouchers list and store in gdbm

This commit is contained in:
2024-10-05 16:56:49 +03:00
parent 31aea6b807
commit 517f980664
7 changed files with 152 additions and 37 deletions

View File

@@ -25,7 +25,7 @@ func (m *MockAccountService) CheckAccountStatus(trackingId string) (string, erro
return args.String(0), args.Error(1)
}
func (m *MockAccountService) FetchVouchersFromAPI() ([]models.VoucherHolding, error) {
func (m *MockAccountService) FetchVouchers(publicKey string) (*models.VoucherHoldingResponse, error) {
args := m.Called()
return args.Get(0).([]models.VoucherHolding), args.Error(1)
return args.Get(0).(*models.VoucherHoldingResponse), args.Error(1)
}