Skip to content

Commit

Permalink
🐛fix(categoria): corrigi o mapeamento do prisma para o domínio | Part…
Browse files Browse the repository at this point in the history
…e 19

- Corrige a função passada no map para usar o método estático de mapeamento entre modelos prisma e domínio
  • Loading branch information
diegoarmandoo committed Sep 28, 2023
1 parent 1bd66b3 commit 7bb212f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CategoriaPrismaRepository extends PrismaRepository implements ICategoriaRe
async recuperarTodos(): Promise<Array<Categoria>> {
const categoriasRecuperadas = await this._datasource.categoria.findMany();
const categorias = categoriasRecuperadas.map(
(categoria) => CategoriaMap.fromPrismaModelToDomain(categoriaRecuperada)
(categoria) => CategoriaMap.fromPrismaModelToDomain(categoria)
);
return categorias;
}
Expand Down

0 comments on commit 7bb212f

Please sign in to comment.