Skip to content

Commit e9bd05f

Browse files
committed
Use generic list mapper for future enhancements to limit response size.
1 parent 914957d commit e9bd05f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Networking/Sources/Extended/Remote/ProductsRemote.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public final class ProductsRemote: Remote, ProductsRemoteProtocol {
209209

210210
let path = Path.products
211211
let request = JetpackRequest(wooApiVersion: .mark3, method: .get, siteID: siteID, path: path, parameters: parameters, availableAsRESTRequest: true)
212-
let mapper = ProductListMapper(siteID: siteID)
212+
let mapper = ListMapper<Product>(siteID: siteID)
213213

214214
return try await enqueue(request, mapper: mapper)
215215
}

0 commit comments

Comments
 (0)