Skip to content

Commit

Permalink
chore: adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 28, 2024
1 parent 01461f8 commit 6a68512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adapters/lark/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@satorijs/adapter-lark",
"description": "Lark (飞书) Adapter for Satorijs",
"version": "3.5.3",
"version": "3.6.0",
"type": "module",
"main": "lib/index.cjs",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions adapters/lark/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Adapter, Context, Logger, Schema } from '@satorijs/core'
import {} from '@cordisjs/plugin-server'

import { FeishuBot } from './bot'
import { AllEvents } from './types'
import { EventPayload } from './types'
import { adaptSession, Cipher } from './utils'

export class HttpServer<C extends Context = Context> extends Adapter<C, FeishuBot<C>> {
Expand Down Expand Up @@ -98,7 +98,7 @@ export class HttpServer<C extends Context = Context> extends Adapter<C, FeishuBo
})
}

async dispatchSession(body: AllEvents) {
async dispatchSession(body: EventPayload) {
const { header } = body
if (!header) return
const { app_id, event_type } = header
Expand Down

0 comments on commit 6a68512

Please sign in to comment.