From 3ae6d39ebc2f5f2aa80217ca682ec447b50ebc6b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 1 Jul 2024 20:29:06 +0100 Subject: [PATCH] Increase notifications endpoint timeout --- src/controllers/api/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/notifications.ts b/src/controllers/api/notifications.ts index d92ccf4a..51a20a05 100644 --- a/src/controllers/api/notifications.ts +++ b/src/controllers/api/notifications.ts @@ -78,7 +78,7 @@ async function renderNotifications( const store = c.get('store'); const pubkey = await c.get('signer')?.getPublicKey()!; const { signal } = c.req.raw; - const opts = { signal, limit: params.limit }; + const opts = { signal, limit: params.limit, timeout: 5000 }; const events = await store .query(filters, opts)