satellite/payments: De-shadow customer page var in stripe mock

Fixes infinite loop when there are more records than the limit.

Change-Id: Ib61a8fcad6d08f4e0f1c5715d710acec607004b3
This commit is contained in:
Ethan 2021-03-03 18:31:46 -05:00
parent 376547c33c
commit 7af245c3e7

View File

@ -155,7 +155,7 @@ func (m *mockCustomers) repopulate() error {
}
for cusPage.Next {
cusPage, err := m.customersDB.List(ctx, cusPage.NextOffset, limit, time.Now())
cusPage, err = m.customersDB.List(ctx, cusPage.NextOffset, limit, time.Now())
if err != nil {
return err
}