fix: await Promise.allSettled

This commit is contained in:
P. Reis 2025-03-05 11:00:28 -03:00
parent ab6054efe8
commit dfff63fab4

View file

@ -186,7 +186,7 @@ export class DittoRelayStore implements NRelay {
await relay.event(purifyEvent(event), { signal }); await relay.event(purifyEvent(event), { signal });
} finally { } finally {
// This needs to run in steps, and should not block the API from responding. // This needs to run in steps, and should not block the API from responding.
Promise.allSettled([ await Promise.allSettled([
this.handleRevokeNip05(event, signal), this.handleRevokeNip05(event, signal),
this.handleZaps(event), this.handleZaps(event),
this.updateAuthorData(event, signal), this.updateAuthorData(event, signal),
@ -281,7 +281,7 @@ export class DittoRelayStore implements NRelay {
nip05: null, nip05: null,
nip05_domain: null, nip05_domain: null,
nip05_hostname: null, nip05_hostname: null,
nip05_last_verified_at: event.created_at, nip05_last_verified_at: author.created_at,
}) })
) )
.execute(); .execute();