Commit 5406d4d 1 parent 4234020 commit 5406d4d Copy full SHA for 5406d4d
File tree 1 file changed +3
-3
lines changed
frontend/src/hooks/api/actions/useReleasePlansApi
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ export const useReleasePlansApi = () => {
11
11
projectId : string ,
12
12
environment : string ,
13
13
) : Promise < void > => {
14
- const requestId = 'createReleasePlanTemplate ' ;
15
- const path = `api/admin/projects/${ projectId } /features/${ featureName } /environments/${ environment } /release_plans/ ${ releasePlanTemplateId } ` ;
14
+ const requestId = 'addReleasePlanToFeature ' ;
15
+ const path = `api/admin/projects/${ projectId } /features/${ featureName } /environments/${ environment } /release_plans` ;
16
16
const req = createRequest (
17
17
path ,
18
18
{
19
19
method : 'POST' ,
20
- body : JSON . stringify ( { } ) ,
20
+ body : JSON . stringify ( { templateId : releasePlanTemplateId } ) ,
21
21
} ,
22
22
requestId ,
23
23
) ;
You can’t perform that action at this time.
0 commit comments