From: Andrea Bianco Date: Fri, 16 Sep 2016 14:28:16 +0000 (+0200) Subject: Built motion from commit 9ea097c.|0.0.143 X-Git-Tag: 20/10/16~58 X-Git-Url: http://repos.xcallymotion.com/?a=commitdiff_plain;h=720c24caa319ec0c985144f5ce30605beb04dd60;p=motion.git Built motion from commit 9ea097c.|0.0.143 --- diff --git a/release-notes/changelog_0.0.143.txt b/release-notes/changelog_0.0.143.txt index 614fe94..ddbec13 100644 --- a/release-notes/changelog_0.0.143.txt +++ b/release-notes/changelog_0.0.143.txt @@ -1,5 +1,6 @@ # xCALLY MOTION Changelog +- * 9ea097c - 2016-09-16: Channels cleaner fix - * 1ba79fa - 2016-09-16: Added cleaner for all channels - * 82c5e19 - 2016-09-16: remove custom label from mail selection (scheduler) - * b1ef54a - 2016-09-16: fix service mail account diff --git a/server/config/ami/cleaner.js b/server/config/ami/cleaner.js index bf240f6..63eaa4f 100644 --- a/server/config/ami/cleaner.js +++ b/server/config/ami/cleaner.js @@ -130,6 +130,7 @@ function removeExpiredApplications(channel) { expiration = moment(session.updatedAt).add(session.timeslot, 'seconds'); if (moment().isSameOrAfter(expiration)) { bulkFix.push(session.updateAttributes({ + timeout: true, leaveAt: moment().format("YYYY-MM-DD HH:mm:ss") })); }