MCPcopy
hub / github.com/MALSync/MALSync / firebaseNotification

Function firebaseNotification

src/utils/firebaseNotification.ts:1–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export 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
9async function checkNotifications() {
10 con.log('checkNotifications');

Callers 6

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls 3

checkNotificationsFunction · 0.85
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected