Fix a few more type errors, whoops

This commit is contained in:
Alex Gleason
2024-09-22 17:46:21 -05:00
parent b6e7a5529f
commit ebce4a8b1d
3 changed files with 7 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ function connectStream(socket: WebSocket, ip: string | undefined) {
for (const event of await store.query(filters, { limit: FILTER_LIMIT, timeout: Conf.db.timeouts.relay })) {
send(['EVENT', subId, event]);
}
} catch (e) {
} catch (e: any) {
if (e instanceof RelayError) {
send(['CLOSED', subId, e.message]);
} else if (e.message.includes('timeout')) {