fix ts type error

This commit is contained in:
lloydzhou
2024-07-09 15:10:23 +08:00
parent 93a03f8fe4
commit 147fc9a35a
2 changed files with 6 additions and 4 deletions

View File

@@ -102,8 +102,8 @@ async function request(req: NextRequest) {
);
const { access_token } = await getAccessToken(
serverConfig.baiduApiKey,
serverConfig.baiduSecretKey,
serverConfig.baiduApiKey as string,
serverConfig.baiduSecretKey as string,
);
const fetchUrl = `${baseUrl}${path}?access_token=${access_token}`;