Skip to content

Commit

Permalink
Remove stream message
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Nov 16, 2023
1 parent 788b595 commit 5b0172b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/api/camera/camera.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ module.exports = function CameraController(
* @apiGroup Camera
*/
async function startStreaming(req, res, next) {
const user = await userModel.getMySelf(req.user);
telegramService.sendAlert(`User ${user.email} starting stream !`);
const streamAccessKey = (await randomBytes(36)).toString('hex');
await redisClient.set(`${STREAMING_ACCESS_KEY_PREFIX}:${streamAccessKey}`, req.user.id, {
EX: 60 * 60, // 1 hour in second
Expand Down Expand Up @@ -217,7 +215,6 @@ module.exports = function CameraController(
*/
async function cleanCameraLive(req, res) {
validateSessionId(req.params.session_id);
telegramService.sendAlert(`End of camera stream, session_id = ${req.params.session_id} !`);
const folder = `${req.instance.id}/${req.params.session_id}`;
await emptyS3Directory(process.env.CAMERA_STORAGE_BUCKET, folder);
res.json({ success: true });
Expand Down

0 comments on commit 5b0172b

Please sign in to comment.