Commit fc954464 by 赵月辉

fix: 修复 app/list.ts 对象字面量未闭合导致的语法错误

- 第147行对象字面量缺少闭合 },导致后续 delete data.parentId 语法错误(TS1005/TS1128)
- 删除残留的 console.log 调试语句
parent 4dfc186c
......@@ -145,6 +145,7 @@ async function handler(req: ApiRequestProps<ListAppBodyType>): Promise<ListAppRe
...searchMatch,
type: _type,
...parseParentIdInMongo(parentId)
};
// @ts-ignore
delete data.parentId;
......@@ -162,8 +163,6 @@ async function handler(req: ApiRequestProps<ListAppBodyType>): Promise<ListAppRe
if (searchKey) return 50;
return;
})();
console.log('parentId222:', parentId);
console.log('findAppsQuery:', findAppsQuery);
const myApps = await MongoApp.find(
{ ...findAppsQuery, deleteTime: null },
'_id parentId avatar type name intro tmbId updateTime pluginData inheritPermission modules',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment