(group_id)
| 59 | |
| 60 | // Function to get a specific cron entry by group_id |
| 61 | async function getCronById(group_id) { |
| 62 | try { |
| 63 | const data = loadCronData(); |
| 64 | return data[group_id] || null; |
| 65 | } catch (error) { |
| 66 | console.error("Error while retrieving cron data by group_id:", error); |
| 67 | return null; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // Function to delete a cron entry by group_id |
| 72 | async function delCron(group_id) { |
nothing calls this directly
no test coverage detected