mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 11:24:43 +00:00
fix: resolve lint, typecheck, and tsconfig deprecation errors
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user