Skip to content

Commit

Permalink
chore: Update MongoDB product repository to use 'id' instead of '_id'
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeais committed Jun 15, 2024
1 parent bb67c5b commit d7e32d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class MongoDbProductsRepository implements ProductsRepository {
);

const exists = await this.productModel.exists({
_id: product.id.toString(),
id: product.id.toString(),
});

const productModel = MongoDbProductMapper.toPersistence(product);
Expand Down

0 comments on commit d7e32d3

Please sign in to comment.