Use request instead of load to avoid timeouts

This commit is contained in:
Jon Staab
2025-11-04 09:05:17 -08:00
parent b469addd29
commit d980f36246
2 changed files with 5 additions and 3 deletions

View File

@@ -248,13 +248,15 @@ export const makeCalendarFeed = ({
// Domain specific
export const loadAlerts = (pubkey: string) =>
load({
request({
autoClose: true,
relays: [NOTIFIER_RELAY],
filters: [{kinds: [ALERT_EMAIL, ALERT_WEB, ALERT_IOS, ALERT_ANDROID], authors: [pubkey]}],
})
export const loadAlertStatuses = (pubkey: string) =>
load({
request({
autoClose: true,
relays: [NOTIFIER_RELAY],
filters: [{kinds: [ALERT_STATUS], "#p": [pubkey]}],
})

View File

@@ -15,7 +15,7 @@
!fullscreen &&
cx(
"bg-alt text-base-content overflow-auto text-base-content shadow-xl",
"px-2 py-6 bottom-0 left-0 right-0 top-20 rounded-t-box absolute",
"px-4 py-6 bottom-0 left-0 right-0 top-20 rounded-t-box absolute",
"sm:p-6 sm:max-h-[90vh] sm:w-[520px] sm:rounded-box sm:relative sm:top-0",
),
)