Skip to content

Commit

Permalink
🐛 fix: 兼容 sdk 变更
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 25, 2023
1 parent 26f5dd2 commit 4cd47fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ErrorType, createErrorResponse } from '@lobehub/chat-plugin-sdk';
import { PluginErrorType, createErrorResponse } from '@lobehub/chat-plugin-sdk';

import fetchWeather from './_utils';

Expand All @@ -7,7 +7,7 @@ export const config = {
};

export default async (req: Request) => {
if (req.method !== 'POST') return createErrorResponse(ErrorType.MethodNotAllowed);
if (req.method !== 'POST') return createErrorResponse(PluginErrorType.MethodNotAllowed);

const args = await req.json();

Expand Down

0 comments on commit 4cd47fa

Please sign in to comment.