Skip to content

Commit

Permalink
fix wrong sms
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed May 28, 2024
1 parent e6fdeaa commit 1f3bf38
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class CourierOrderService {
private orderUtilService: OrderUtilService,
private readonly smsService: ECommmerceSmsService,
private readonly i18n: I18nService<I18nTranslations>,
private readonly userRepository: typeof User,
) {}

async findAll(user: User, filter: ListFilter) {
Expand Down Expand Up @@ -154,7 +155,7 @@ export class CourierOrderService {

item = await item.save();
await this.smsService.sendByCourier(
`${user.firstname};${user.lastname};${courier.user.phoneNumber};${orderId}`,
`${item.user.firstname};${item.user.lastname};${courier.user.phoneNumber};${orderId}`,
item.user.phoneNumber,
);

Expand Down

0 comments on commit 1f3bf38

Please sign in to comment.