add missing await (#463)

This commit is contained in:
BlowaterNostr 2024-05-08 01:05:39 +08:00 committed by GitHub
parent 1285dcb8f1
commit 60ff80dddf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -606,7 +606,7 @@ export async function handle_SendMessage(
return events_send; return events_send;
} }
for (const event of events_send) { for (const event of events_send) {
const result = args.current_relay.sendEvent(event); const result = await args.current_relay.sendEvent(event);
if (result instanceof Error) { if (result instanceof Error) {
return result; return result;
} }