Adds missing confirm email after payment (#2353)
This commit is contained in:
		
							parent
							
								
									d997aef4f8
								
							
						
					
					
						commit
						966a5f30ec
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -10,6 +10,7 @@ import { CalendarEvent } from "@calcom/types/Calendar"; | ||||||
| 
 | 
 | ||||||
| import { IS_PRODUCTION } from "@lib/config/constants"; | import { IS_PRODUCTION } from "@lib/config/constants"; | ||||||
| import { HttpError as HttpCode } from "@lib/core/http/error"; | import { HttpError as HttpCode } from "@lib/core/http/error"; | ||||||
|  | import { sendScheduledEmails } from "@lib/emails/email-manager"; | ||||||
| 
 | 
 | ||||||
| import { getTranslation } from "@server/lib/i18n"; | import { getTranslation } from "@server/lib/i18n"; | ||||||
| 
 | 
 | ||||||
|  | @ -126,6 +127,8 @@ async function handlePaymentSuccess(event: Stripe.Event) { | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |   await sendScheduledEmails({ ...evt }); | ||||||
|  | 
 | ||||||
|   throw new HttpCode({ |   throw new HttpCode({ | ||||||
|     statusCode: 200, |     statusCode: 200, | ||||||
|     message: `Booking with id '${booking.id}' was paid and confirmed.`, |     message: `Booking with id '${booking.id}' was paid and confirmed.`, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Omar López
						Omar López