feat: add tomorrow weather brief notifications
This commit is contained in:
@@ -14,6 +14,7 @@ export async function fetchVapidPublicKey(signal?: AbortSignal) {
|
||||
|
||||
interface SavePushSubscriptionOptions {
|
||||
morningBriefEnabled?: boolean;
|
||||
tomorrowBriefEnabled?: boolean;
|
||||
latitude?: number | null;
|
||||
longitude?: number | null;
|
||||
locationName?: string | null;
|
||||
@@ -30,6 +31,7 @@ export async function savePushSubscription(subscription: PushSubscription, provi
|
||||
language,
|
||||
enabled: true,
|
||||
morningBriefEnabled: options.morningBriefEnabled === true,
|
||||
tomorrowBriefEnabled: options.tomorrowBriefEnabled === true,
|
||||
latitude: options.latitude ?? null,
|
||||
longitude: options.longitude ?? null,
|
||||
locationName: options.locationName ?? null,
|
||||
|
||||
Reference in New Issue
Block a user