v1.4.3/release (clean up criteria, titles, color for self)

This commit is contained in:
2020-07-20 15:53:33 -04:00
parent ff8ded5959
commit d2d258c7a1
4 changed files with 14 additions and 6 deletions
+4 -1
View File
@@ -27,7 +27,10 @@ module.exports = async () => {
.get()
.then(async (roomSnap) => {
if (
timeDiff(roomSnap.createTime.toDate(), startedTime) >= 24 ||
// MORE THAN 24 HOURS AND NOT IN USE
(timeDiff(roomSnap.createTime.toDate(), startedTime) >= 24 &&
timeDiff(roomSnap.updateTime.toDate(), startedTime) >= 12) ||
// LESS THAN 24 HOURS BUT NOT IN USE
timeDiff(roomSnap.updateTime.toDate(), startedTime) >= 12
) {
await cleanUpRoom(roomSnap.id);