Skip to content

Commit

Permalink
🎨 chore: make code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 17, 2023
1 parent beb14eb commit 0646077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async (req: Request) => {
const item = manifest.plugins.find((i) => i.name === name);

// 先通过插件资产 endpoint 路径查询
if (!!item?.runtime.endpoint && item.runtime.endpoint.startsWith('https://')) {
if (!!item?.runtime.endpoint) {
const res = await fetch(item.runtime.endpoint, { body: args, method: 'post' });
const data = await res.text();
console.log(`[${name}]`, args, `result:`, data.slice(0, 3600));
Expand Down

0 comments on commit 0646077

Please sign in to comment.