From 7b798defcaf697ac3304561732d16ee58510ac26 Mon Sep 17 00:00:00 2001 From: Tim Mendoza Date: Tue, 30 Mar 2021 17:01:51 -0600 Subject: [PATCH] Update changelog --- CHANGELOG.md | 6 ++++++ src/serverless/functions/token.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b23201..80280c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.8.1 + +### Enhancement + +- Specified a timer when creating a Twilio Conversation. This will automatically close the conversation after 24 hours, which is equal to the maximum duration of a video room. This helps to clean up old conversations since there is a limit that a single participant can not be added to more than 1,000 open conversations. + ## 0.8.0 ### New Features diff --git a/src/serverless/functions/token.js b/src/serverless/functions/token.js index 506053b..3c1db55 100644 --- a/src/serverless/functions/token.js +++ b/src/serverless/functions/token.js @@ -96,7 +96,7 @@ module.exports.handler = async (context, event, callback) => { // Here we add a timer to close the conversation after the maximum length of a room (24 hours). // This helps to clean up old conversations since there is a limit that a single participant // can not be added to more than 1,000 open conversations. - await conversationsClient.conversations.create({ uniqueName: room.sid, 'timers.close': 'P1D' }); + await conversationsClient.conversations.create({ uniqueName: room.sid, 'timers.closed': 'P1D' }); } catch (e) { response.setStatusCode(500); response.setBody({