(group_id)
| 70 | |
| 71 | // Function to delete a cron entry by group_id |
| 72 | async function delCron(group_id) { |
| 73 | try { |
| 74 | const data = loadCronData(); |
| 75 | if (data[group_id]) { |
| 76 | delete data[group_id]; |
| 77 | saveCronData(data); |
| 78 | console.log(`Cron data deleted for group_id: ${group_id}`); |
| 79 | } else { |
| 80 | console.log(`Group ID ${group_id} not found.`); |
| 81 | } |
| 82 | } catch (error) { |
| 83 | console.error("Error while deleting cron data:", error); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | module.exports = { |
| 88 | getCron, |
nothing calls this directly
no test coverage detected