Basic grid structure

This commit is contained in:
Daniel Cojocea committed 2024-09-16 12:53:59 -04:00
1 parent 62e7eab8a3
commit 267ef14bb8
5 files changed
+42 -71

No files matched your search

-14
View File
@@ -259,20 +259,6 @@ const updateChecksTTL = async (teamId, ttl) => {
}
};
const updateChecksTTL = async (teamId, ttl) => {
try {
await Check.collection.dropIndex("expiry_1");
await Check.collection.createIndex(
{ expiry: 1 },
{ expireAfterSeconds: ttl } // TTL in seconds, adjust as necessary
);
} catch (error) {
error.service = SERVICE_NAME;
error.method = "updateChecksTTL";
throw error;
}
};
module.exports = {
createCheck,
getChecksCount,