This pull request fixes an error when querying customers when they're stored as database users.
Essentially, the raw items that come back from the query builder are User models instead of Statamic user instances as expected. This PR fixes it by mapping the models to Statamic User instances before then mapping to Simple Commerce Customer objects.
This pull request fixes an error when querying customers when they're stored as database users.
Essentially, the raw items that come back from the query builder are
User
models instead of Statamic user instances as expected. This PR fixes it by mapping the models to StatamicUser
instances before then mapping to Simple CommerceCustomer
objects.Fixes #1082.