Skip to content

Commit

Permalink
🏷️ chore: improve type
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 28, 2023
1 parent e91d9a8 commit cb51fbf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export const createLobeChatPluginGateway = (pluginsIndexUrl: string) => {
});

// ========== 2. 校验请求入参基础格式 ========== //
const requestPayload = (await req.json()) as PluginRequestPayload & {
manifest?: LobeChatPluginManifest;
};
const requestPayload = (await req.json()) as PluginRequestPayload;

const payloadParseResult = pluginRequestPayloadSchema.safeParse(requestPayload);

Expand Down

0 comments on commit cb51fbf

Please sign in to comment.