forked from swapnil.bendal/TypeScript-Backend-Template
[update] - License
This commit is contained in:
@@ -41,6 +41,7 @@ export class ProductRepository implements IProductRepository {
|
||||
});
|
||||
}
|
||||
|
||||
// Find by ID Product
|
||||
async findById(id: number): Promise<Product> {
|
||||
return await this.productRepository.findOneOrFail({ where: { id } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user