Skip to content

Commit

Permalink
fix(qq): fix config schema, close #330
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Dec 24, 2024
1 parent 2c9aa14 commit 8f52b5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adapters/qq/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@satorijs/adapter-qq",
"description": "QQ Adapter for Satorijs",
"version": "4.8.6",
"version": "4.9.1",
"type": "module",
"main": "lib/index.cjs",
"typings": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions adapters/qq/src/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ export class WsClient<C extends Context = Context> extends Adapter.WsClient<C, Q

export namespace WsClient {
export interface Options extends Adapter.WsClientConfig {
protocol: 'websocket'
protocol?: 'websocket'
}

export const Options: Schema<Options> = Schema.intersect([
Schema.object({
protocol: Schema.const('websocket').required(),
protocol: Schema.const('websocket').required(false),
}),
Adapter.WsClientConfig,
])
Expand Down

0 comments on commit 8f52b5d

Please sign in to comment.