Returns and save the room link
This commit is contained in:
+2
-1
@@ -268,7 +268,7 @@ def alert():
|
||||
if webex_room_id:
|
||||
alert_collection.update_one(
|
||||
{"_id": saved_alert.inserted_id},
|
||||
{"$set": {"webex_room_id": webex_room_id, "webex_room_title": room_title}}
|
||||
{"$set": {"webex_room_id": webex_room_id, "webex_room_title": room_title, "webex_room_link": room_link}}
|
||||
)
|
||||
|
||||
# --- SEND SMS ---
|
||||
@@ -290,6 +290,7 @@ def alert():
|
||||
"status": "success",
|
||||
"message": "Alert saved",
|
||||
"webex_room_id": webex_room_id,
|
||||
"webex_room_url": room_link,
|
||||
"webex_status": webex_status,
|
||||
"sms_sent": sms_sent
|
||||
}), 200
|
||||
|
||||
Reference in New Issue
Block a user