v1.4.3/release (clean up criteria, titles, color for self)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user