Commit 5c455501 authored by Omar Luna Hernández's avatar Omar Luna Hernández
Browse files

Se modifica la forma en que se obtienen las categorias

parent afb8fc93
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -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 = {