diff --git a/src/gateway/server-methods.ts b/src/gateway/server-methods.ts index ea92d4e72..fc763bac2 100644 --- a/src/gateway/server-methods.ts +++ b/src/gateway/server-methods.ts @@ -114,7 +114,10 @@ function authorizeGatewayMethod(method: string, client: GatewayRequestOptions["c if (role === "webchat") { if (WEBCHAT_ROLE_METHODS.has(method)) return null; - return errorShape(ErrorCodes.INVALID_REQUEST, `unauthorized method for role webchat: ${method}`); + return errorShape( + ErrorCodes.INVALID_REQUEST, + `unauthorized method for role webchat: ${method}`, + ); } if (role !== "operator") {