mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 04:44:28 +00:00
feat(collection): support source folder and selector in collections
This commit is contained in:
@@ -7,9 +7,9 @@ import {
|
||||
updateCollectionRequestSchema,
|
||||
listCollectionsRequestSchema,
|
||||
CollectionInfo,
|
||||
CollectionFilter,
|
||||
} from '@/dtos/collection'
|
||||
import type { Prisma } from '@/generated/prisma/client'
|
||||
import type { SearchFilter } from '@/dtos/search'
|
||||
|
||||
type User = Prisma.UserGetPayload<Record<string, never>>
|
||||
|
||||
@@ -17,7 +17,7 @@ function toCollectionInfo(c: Prisma.CollectionGetPayload<Record<string, never>>)
|
||||
return {
|
||||
id: c.id,
|
||||
name: c.name,
|
||||
filter: c.filter as unknown as SearchFilter,
|
||||
filter: c.filter as unknown as CollectionFilter,
|
||||
projectId: c.projectId,
|
||||
createdAt: c.createdAt.toISOString(),
|
||||
updatedAt: c.updatedAt.toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user