This commit is contained in:
sarendsen
2025-03-01 18:40:43 +01:00
parent 49d1be6bdf
commit 343a2cb3b5

View File

@@ -95,10 +95,10 @@ function useNotificationObserver() {
if (!Platform.isTV) {
TaskManager.defineTask(BACKGROUND_FETCH_TASK_SESSIONS, async () => {
console.log("TaskManager ~ sessions trigger");
if (apiAtom === null || apiAtom === undefined) return;
const api = store.get(apiAtom);
if (api === null || api === undefined) return;
if (api === null || api === undefined) return;
const response = await getSessionApi(api).getSessions({
activeWithinSeconds: 360,
});