add message to db

This commit is contained in:
2022-12-22 19:49:07 +01:00
parent 167129d971
commit 15e5b92423
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ def accept_appointment_found(accepted_result_list: list):
mailer = Mailer()
for reserve in accepted_result_list:
mailer.send_email(get_accepted_result_from(reserve), to_all=True)
MONGO_STORE_MANAGER.update_reserve_result(reserve.id, ResultEnum.ACCEPTED)
MONGO_STORE_MANAGER.update_reserve_result(reserve.id, ResultEnum.ACCEPTED, reserve.message)
if len(accepted_result_list) > 0:
migre_accepted_appointment(str(datetime.date.today()))