()
| 1 | export async function firebaseNotification() { |
| 2 | const schedule = await api.storage.get('timestampUpdate/firebaseNotification'); |
| 3 | if (typeof schedule === 'undefined' || j.$.now() - schedule > 10 * 60 * 1000) { |
| 4 | await checkNotifications(); |
| 5 | api.storage.set('timestampUpdate/firebaseNotification', j.$.now()); |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | async function checkNotifications() { |
| 10 | con.log('checkNotifications'); |