mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-15 08:42:21 +00:00
fix: return correct type for notifications to work
This commit is contained in:
@@ -120,7 +120,11 @@ if (!Platform.isTV) {
|
||||
|
||||
if (!token || !url || !user?.Id) return;
|
||||
|
||||
fetchAndStoreRecentlyAdded(user.Id, url, token);
|
||||
const result = await fetchAndStoreRecentlyAdded(user.Id, url, token);
|
||||
|
||||
if (!result) return BackgroundFetch.BackgroundFetchResult.NoData;
|
||||
|
||||
return BackgroundFetch.BackgroundFetchResult.NewData;
|
||||
});
|
||||
|
||||
TaskManager.defineTask(BACKGROUND_FETCH_TASK, async () => {
|
||||
|
||||
Reference in New Issue
Block a user