File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
context/engagement_context Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,8 @@ export const EngagementProvider = ({
176
176
const _refreshEngagementData = useCallback (
177
177
async ( engagement : Engagement ) => {
178
178
try {
179
- const refreshedEngagement = await engagementService . getEngagementByCustomerAndProjectName (
180
- engagement ?. customer_name ,
181
- engagement ?. project_name
179
+ const refreshedEngagement = await engagementService . getEngagementById (
180
+ engagement ?. uuid ,
182
181
) ;
183
182
setCurrentEngagement ( refreshedEngagement ) ;
184
183
} catch ( e ) {
@@ -244,6 +243,8 @@ export const EngagementProvider = ({
244
243
if ( ! ! uuid ) {
245
244
fetchedEngagement = await engagementService . getEngagementById ( uuid ) ;
246
245
} else {
246
+ //This is probably not used anymore. Check backend logs for "Deprecated get method used"
247
+ //Delete this and engagementService.getEngagementByCustomerAndProjectName if none by 03/17/2022
247
248
fetchedEngagement = await engagementService . getEngagementByCustomerAndProjectName (
248
249
customerName ,
249
250
projectName
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export class Apiv1EngagementService implements EngagementService {
135
135
const {
136
136
data,
137
137
} = await this . axios . put (
138
- `/engagements/customers/ ${ engagement . customer_name } /projects/ ${ engagement . project_name } ` ,
138
+ `/engagements/${ engagement . uuid } ` ,
139
139
{ ...serializedEngagement , commit_message : commitMessage }
140
140
) ;
141
141
return Apiv1EngagementService . engagementSerializer . deserialize ( data ) ;
You can’t perform that action at this time.
0 commit comments