Remove duplicate method
This commit is contained in:
1 parent
6a5db4e35a
commit
f075e15ab7
1 file changed
-14
@@ -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 = {
|
module.exports = {
|
||||||
createCheck,
|
createCheck,
|
||||||
getChecksCount,
|
getChecksCount,
|
||||||
|
|||||||
Reference in new issue
Block a user