fix: callback transaction
This commit is contained in:
@@ -42,7 +42,12 @@ export class ProductHistoryPriceService {
|
||||
|
||||
async findById(id: string) {
|
||||
try {
|
||||
return await this.productHistoryPriceService.findOneOrFail(id);
|
||||
return await this.productHistoryPriceService.findOneOrFail({
|
||||
where: {
|
||||
id: id,
|
||||
},
|
||||
relations: ['product'],
|
||||
});
|
||||
} catch (e) {
|
||||
if (e instanceof EntityNotFoundError) {
|
||||
throw new HttpException(
|
||||
|
||||
Reference in New Issue
Block a user