filter
This commit is contained in:
1 parent
bb4ddf3f36
commit
0ce91bd0e5
6 files changed
+57
-18
No files matched your search
+10
-3
@@ -51,11 +51,18 @@ export async function itemsList(params: {
|
||||
page: number
|
||||
limit: number
|
||||
text?: string | null
|
||||
status?: string | null
|
||||
assigneeId?: string | null
|
||||
projectId?: string | null
|
||||
}) {
|
||||
// `text` (free-text search) has no backend support yet — kept in the
|
||||
// signature so callers don't need to change, but not sent over the wire.
|
||||
const query = toQuery({ page: params.page, limit: params.limit, projectId: params.projectId })
|
||||
const query = toQuery({
|
||||
page: params.page,
|
||||
limit: params.limit,
|
||||
projectId: params.projectId,
|
||||
text: params.text,
|
||||
assigneeId: params.assigneeId,
|
||||
status: params.status,
|
||||
})
|
||||
return apiClient.get<{ list: Issue[]; meta: Meta }>(`/api/issues/list${query}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user