()
| 45 | |
| 46 | // Function to get all cron entries |
| 47 | async function getCron() { |
| 48 | try { |
| 49 | const data = loadCronData(); |
| 50 | return Object.keys(data).map(group_id => ({ |
| 51 | group_id, |
| 52 | ...data[group_id] |
| 53 | })); |
| 54 | } catch (error) { |
| 55 | console.error("Error while retrieving cron data:", error); |
| 56 | return []; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // Function to get a specific cron entry by group_id |
| 61 | async function getCronById(group_id) { |
nothing calls this directly
no test coverage detected