Skip to content

Commit

Permalink
Fixing type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Feb 26, 2021
1 parent 676d9c9 commit 8b5c2ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function initDeleteAllCommentsApi({
return response.noContent();
} catch (error) {
logger.error(
`Failed to delete all comments in route case id: ${request.params.case_id} sub case id: ${request.query?.subCaseID}: ${error}`
`Failed to delete all comments in route case id: ${request.params.case_id} sub case id: ${request.query?.subCaseId}: ${error}`
);
return response.customError(wrapError(error));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function initDeleteCommentApi({
return response.noContent();
} catch (error) {
logger.error(
`Failed to delete comment in route case id: ${request.params.case_id} comment id: ${request.params.comment_id} sub case id: ${request.query?.subCaseID}: ${error}`
`Failed to delete comment in route case id: ${request.params.case_id} comment id: ${request.params.comment_id} sub case id: ${request.query?.subCaseId}: ${error}`
);
return response.customError(wrapError(error));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function initGetAllCommentsApi({ caseService, router, logger }: RouteDeps
});
} catch (error) {
logger.error(
`Failed to get all comments in route case id: ${request.params.case_id} include sub case comments: ${request.query?.includeSubCaseComments} sub case id: ${request.query?.subCaseID}: ${error}`
`Failed to get all comments in route case id: ${request.params.case_id} include sub case comments: ${request.query?.includeSubCaseComments} sub case id: ${request.query?.subCaseId}: ${error}`
);
return response.customError(wrapError(error));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function initPostCommentApi({ router, logger }: RouteDeps) {
});
} catch (error) {
logger.error(
`Failed to post comment in route case id: ${request.params.case_id} sub case id: ${request.query?.subCaseID}: ${error}`
`Failed to post comment in route case id: ${request.params.case_id} sub case id: ${request.query?.subCaseId}: ${error}`
);
return response.customError(wrapError(error));
}
Expand Down

0 comments on commit 8b5c2ee

Please sign in to comment.