Skip to content

Commit

Permalink
perf: get init data buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Dec 24, 2024
1 parent 2c18f1d commit 5c043c4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions projects/app/src/pages/api/common/system/getInitData.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { NextApiResponse } from 'next';
import { connectToDatabase } from '@/service/mongo';
import { ApiRequestProps } from '@fastgpt/service/type/next';
import { NextAPI } from '@/service/middleware/entry';

async function handler(req: ApiRequestProps<{}, { bufferId?: string }>, res: NextApiResponse) {
await connectToDatabase();

const { bufferId } = req.query;

// If bufferId is the same as the current bufferId, return directly
Expand Down

0 comments on commit 5c043c4

Please sign in to comment.