Increase notifications endpoint timeout

This commit is contained in:
Alex Gleason 2024-07-01 20:29:06 +01:00
parent 4e150edb5b
commit 3ae6d39ebc
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -78,7 +78,7 @@ async function renderNotifications(
const store = c.get('store'); const store = c.get('store');
const pubkey = await c.get('signer')?.getPublicKey()!; const pubkey = await c.get('signer')?.getPublicKey()!;
const { signal } = c.req.raw; const { signal } = c.req.raw;
const opts = { signal, limit: params.limit }; const opts = { signal, limit: params.limit, timeout: 5000 };
const events = await store const events = await store
.query(filters, opts) .query(filters, opts)