Delete certs from redis

This commit is contained in:
2026-02-25 22:21:16 -05:00
parent 1bacc17a12
commit bcc777ccdf
3 changed files with 16 additions and 15 deletions
+10 -1
View File
@@ -14,4 +14,13 @@ async function getCert(host){
}
}
module.exports = {getCert};
async function deleteCert(host){
try{
console.log('looking for', host);
return JSON.parse(await client.DEL(`${host}:latest`));
}catch(error){
return {}
}
}
module.exports = {getCert, deleteCert};