Skip to content

Commit

Permalink
no need
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Apr 10, 2024
1 parent 15c89f3 commit 091409e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/models/recording.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,21 +372,6 @@ func (rm *RecordingModel) sendToWebhookNotifier(r *plugnmeet.RecorderToPlugNmeet
},
}
if r.Task == plugnmeet.RecordingTasks_RECORDING_PROCEEDED {
// at present recorder is not sending roomId or roomSid but roomTableId
// but for our webhook we'll need those 2 info otherwise next step will not be successful, so we'll get room Info
if r.GetRoomId() == "" || r.GetRoomSid() == "" {
rr := NewRoomModel()
rf, _ := rr.GetRoomInfoByTableId(r.GetRoomTableId())
if rf != nil {
msg.Room = &plugnmeet.NotifyEventRoom{
Sid: &rf.Sid,
RoomId: &rf.RoomId,
}
} else {
log.Errorln("can not get room info with table id", r.GetRoomTableId())
}
}

// this process may take longer time & webhook url may clean up
// so, here we'll use ForceToPutInQueue method to retrieve url from mysql table
n.ForceToPutInQueue(msg)
Expand Down

0 comments on commit 091409e

Please sign in to comment.