fix
This commit is contained in:
@@ -104,11 +104,7 @@ export class ReservesService {
|
||||
const saved = await this.reservesRepository.save(reserve);
|
||||
await this.customersService.linkToSalon(saved.salonId, saved.customerId);
|
||||
await this.logStatusChange(saved.id, null, saved.status, user.id);
|
||||
// When a deposit is required, the reserve-created SMS is sent from the
|
||||
// deposit request flow so it always arrives before the payment link SMS.
|
||||
if (saved.depositAmount <= 0) {
|
||||
await this.reserveSmsService.sendReserveCreated(saved.id);
|
||||
}
|
||||
await this.reserveSmsService.sendReserveCreated(saved.id);
|
||||
await this.salonNotificationsService.notifyReserveCreated(saved.id);
|
||||
return this.findOne(saved.id, user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user