From c470fb17445a7434267c262f38874f7c92c8c636 Mon Sep 17 00:00:00 2001 From: undefined Date: Sat, 4 Jan 2025 01:51:47 +0800 Subject: [PATCH] chore: fix `parsed.body.proxyUrls` doesn't exisst --- adapters/satori/src/ws.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapters/satori/src/ws.ts b/adapters/satori/src/ws.ts index 8ff8862f..e5fd8fdd 100644 --- a/adapters/satori/src/ws.ts +++ b/adapters/satori/src/ws.ts @@ -101,12 +101,12 @@ export class SatoriAdapter extends Adapter.WsClient for (const login of parsed.body.logins) { this.getBot(login.platform, login.user.id, login) } - this._metaDispose = this.ctx.satori.proxyUrls.add(...parsed.body.proxyUrls) + this._metaDispose = this.ctx.satori.proxyUrls.add(...(parsed.body.proxyUrls || [])) } if (parsed.op === Universal.Opcode.META) { this._metaDispose?.() - this._metaDispose = this.ctx.satori.proxyUrls.add(...parsed.body.proxyUrls) + this._metaDispose = this.ctx.satori.proxyUrls.add(...(parsed.body.proxyUrls || [])) } if (parsed.op === Universal.Opcode.EVENT) {