P5 7617 cleanup market and locale (#10)

* Minor fixes

* Cleanup with adding Locale type

* Add locales to test
This commit is contained in:
Niklas Fondberg
2021-08-12 10:51:02 +02:00
committed by GitHub
parent 7047fe9851
commit 58ed7fbf6a
10 changed files with 115 additions and 44 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ import { ProductAPI } from './datasources/product-api';
import { DesignerAPI } from './datasources/designer-api';
import { CategoryAPI } from './datasources/category-api';
import { KeywordAPI } from './datasources/keyword-api';
import { MarketAPI } from './datasources/market-api';
import { MarketLocaleAPI } from './datasources/market-locale-api';
import { ImageServerApi } from './datasources/imageserver-api';
import { InteriorAPI } from './datasources/interior-api';
@@ -26,7 +26,7 @@ const designerApi = new DesignerAPI(knexConfig);
const imageServerApi = new ImageServerApi();
const interiorApi = new InteriorAPI(knexConfig, imageServerApi);
const keywordApi = new KeywordAPI(knexConfig);
const marketApi = new MarketAPI(knexConfig);
const marketLocaleApi = new MarketLocaleAPI(knexConfig);
const orderApi = new OrderAPI(knexConfig);
const productApi = new ProductAPI(knexConfig);
@@ -36,7 +36,7 @@ const dataSources = () => ({
interiorApi,
imageServerApi,
keywordApi,
marketApi,
marketLocaleApi,
orderApi,
productApi,
});