fix: resolve lint, typecheck, and tsconfig deprecation errors

This commit is contained in:
yiling
2026-06-07 11:10:27 +08:00
parent a7e714c7d0
commit e790df2812
9 changed files with 22 additions and 26 deletions
+4 -7
View File
@@ -16,13 +16,10 @@ export class SearchService {
) {}
async search(folderId: string, req: SearchRequest): Promise<PaginatedData<AssetInfo[]>> {
let targetFolderIds: string[] = []
if (req.recursively === false) {
targetFolderIds = [folderId]
} else {
targetFolderIds = await this.assetSvc.getDescendantFolderIds(folderId)
}
const targetFolderIds =
req.recursively === false
? [folderId]
: await this.assetSvc.getDescendantFolderIds(folderId)
const targetTypes =
req.assetType === 'folder' ? [AssetType.folder] : [AssetType.file, AssetType.version_stack]