fix: unable to notify webhook when egress ending with status EgressStatus_EGRESS_LIMIT_REACHED (#1451)

This commit is contained in:
Haiyang Wang
2023-02-22 12:04:26 -08:00
committed by GitHub
parent e855620379
commit 15a9ad2b7a
+2 -1
View File
@@ -71,7 +71,8 @@ func (s *IOInfoService) UpdateEgressInfo(ctx context.Context, info *livekit.Egre
switch info.Status {
case livekit.EgressStatus_EGRESS_COMPLETE,
livekit.EgressStatus_EGRESS_FAILED,
livekit.EgressStatus_EGRESS_ABORTED:
livekit.EgressStatus_EGRESS_ABORTED,
livekit.EgressStatus_EGRESS_LIMIT_REACHED:
// make sure endedAt is set so it eventually gets deleted
if info.EndedAt == 0 {