()
| 37 | |
| 38 | // Function to get data from 'alive' |
| 39 | async function getDataFromAlive() { |
| 40 | try { |
| 41 | const data = loadAliveData(); |
| 42 | if (data.message && data.lien) { |
| 43 | return { message: data.message, lien: data.lien }; |
| 44 | } else { |
| 45 | console.log("No data found in 'alive'."); |
| 46 | return null; |
| 47 | } |
| 48 | } catch (error) { |
| 49 | console.error("Error while retrieving data from 'alive':", error); |
| 50 | return null; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | module.exports = { |
| 55 | addOrUpdateDataInAlive, |
nothing calls this directly
no test coverage detected