serJD commited on
Commit
b942bda
1 Parent(s): e6ac23b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ async def update_streams(request: Request):
72
  event_data = payload["event"]["data"]
73
 
74
  # Check if the event type is "commit_create"
75
- if "type" in event_data and event_data["type"] == "commit_create":
76
  # Check if the stream name matches the specified list
77
  if "stream" in event_data and event_data["stream"] in listendStreams:
78
  # Check if the branch name matches the specified list
 
72
  event_data = payload["event"]["data"]
73
 
74
  # Check if the event type is "commit_create"
75
+ if "type" in event_data and event_data["type"] in ["commit_create", "commit_delete"]:
76
  # Check if the stream name matches the specified list
77
  if "stream" in event_data and event_data["stream"] in listendStreams:
78
  # Check if the branch name matches the specified list