Loading web/src/data/datasources/prod/category_datasource.ts +10 −2 Original line number Diff line number Diff line Loading @@ -16,8 +16,16 @@ export class CategoryDatasourceProd implements CategoryDatasourceInf{ } async getCategories(): Promise<Category[]> { const {data: dataES} = await axios.get<CategoryModel[]>(APIUrl+'/category/ES'); const {data: dataEN} = await axios.get<CategoryModel[]>(APIUrl+'/category/EN'); const {data: dataES} = await axios.get<CategoryModel[]>(APIUrl+'/category/', { params: { lang: 'ES' } }); const {data: dataEN} = await axios.get<CategoryModel[]>(APIUrl+'/category/', { params: { lang: 'ES' } }); const categories : Category[] = []; for(let i=0; i<dataES.length; i++){ const category: Category = { Loading Loading
web/src/data/datasources/prod/category_datasource.ts +10 −2 Original line number Diff line number Diff line Loading @@ -16,8 +16,16 @@ export class CategoryDatasourceProd implements CategoryDatasourceInf{ } async getCategories(): Promise<Category[]> { const {data: dataES} = await axios.get<CategoryModel[]>(APIUrl+'/category/ES'); const {data: dataEN} = await axios.get<CategoryModel[]>(APIUrl+'/category/EN'); const {data: dataES} = await axios.get<CategoryModel[]>(APIUrl+'/category/', { params: { lang: 'ES' } }); const {data: dataEN} = await axios.get<CategoryModel[]>(APIUrl+'/category/', { params: { lang: 'ES' } }); const categories : Category[] = []; for(let i=0; i<dataES.length; i++){ const category: Category = { Loading