This commit is contained in:
Albert Juhé Lluveras 2018-12-12 02:52:50 +01:00 committed by Joshua T Flowers
parent 62c9a952a1
commit 8ad6ce9f06
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import { NAMESPACE } from '../../constants';
import { SWAGGERNAMESPACE } from 'store/constants'; import { SWAGGERNAMESPACE } from 'store/constants';
// TODO: Remove once swagger endpoints are phased out. // TODO: Remove once swagger endpoints are phased out.
const swaggerEndpoints = [ 'categories', 'coupons', 'taxes' ]; const swaggerEndpoints = [ 'categories', 'coupons', 'customers', 'taxes' ];
const typeEndpointMap = { const typeEndpointMap = {
'report-items-query-orders': 'orders', 'report-items-query-orders': 'orders',
@ -27,6 +27,7 @@ const typeEndpointMap = {
'report-items-query-coupons': 'coupons', 'report-items-query-coupons': 'coupons',
'report-items-query-taxes': 'taxes', 'report-items-query-taxes': 'taxes',
'report-items-query-variations': 'variations', 'report-items-query-variations': 'variations',
'report-items-query-customers': 'customers',
}; };
function read( resourceNames, fetch = apiFetch ) { function read( resourceNames, fetch = apiFetch ) {