mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 08:08:05 +00:00
parent
04fae4025e
commit
28ff8c22bc
@ -109,10 +109,10 @@ const reviewWorkflowsApi = adminApi.injectEndpoints({
|
|||||||
Contracts.ReviewWorkflows.UpdateStage.Request['body'] &
|
Contracts.ReviewWorkflows.UpdateStage.Request['body'] &
|
||||||
Contracts.ReviewWorkflows.UpdateStage.Params & { slug: string }
|
Contracts.ReviewWorkflows.UpdateStage.Params & { slug: string }
|
||||||
>({
|
>({
|
||||||
query: ({ model, slug, id, ...body }) => ({
|
query: ({ model, slug, id, ...data }) => ({
|
||||||
url: `/admin/content-manager/${slug}/${model}/${id}/stage`,
|
url: `/admin/content-manager/${slug}/${model}/${id}/stage`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
body,
|
data,
|
||||||
}),
|
}),
|
||||||
transformResponse: (res: Contracts.ReviewWorkflows.UpdateStage.Response) => res.data,
|
transformResponse: (res: Contracts.ReviewWorkflows.UpdateStage.Response) => res.data,
|
||||||
invalidatesTags: (res, _err, arg) => [{ type: 'ReviewWorkflowStage' as const, id: arg.id }],
|
invalidatesTags: (res, _err, arg) => [{ type: 'ReviewWorkflowStage' as const, id: arg.id }],
|
||||||
@ -122,10 +122,10 @@ const reviewWorkflowsApi = adminApi.injectEndpoints({
|
|||||||
Contracts.ReviewWorkflows.UpdateAssignee.Request['body'] &
|
Contracts.ReviewWorkflows.UpdateAssignee.Request['body'] &
|
||||||
Contracts.ReviewWorkflows.UpdateAssignee.Params & { slug: string }
|
Contracts.ReviewWorkflows.UpdateAssignee.Params & { slug: string }
|
||||||
>({
|
>({
|
||||||
query: ({ model, slug, id, ...body }) => ({
|
query: ({ model, slug, id, ...data }) => ({
|
||||||
url: `/admin/content-manager/${slug}/${model}/${id}/assignee`,
|
url: `/admin/content-manager/${slug}/${model}/${id}/assignee`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
body,
|
data,
|
||||||
}),
|
}),
|
||||||
transformResponse: (res: Contracts.ReviewWorkflows.UpdateAssignee.Response) => res.data,
|
transformResponse: (res: Contracts.ReviewWorkflows.UpdateAssignee.Response) => res.data,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user