Skip to content

Commit

Permalink
fix string conversion, due to axios lib upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ritosilva committed Nov 21, 2023
1 parent e913383 commit eae015e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion frontend/src/services/RemoteServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,11 @@ export default class RemoteServices {
status: String
): Promise<Question> {
return httpClient
.post(`/questions/${questionId}/set-status`, status, {})
.post(`/questions/${questionId}/set-status`, status, {
headers: {
'Content-Type': 'text/plain',
},
})
.then((response) => {
return new Question(response.data);
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/e2e/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Cypress.Commands.add('time', (date, day, type) => {
cy.get(
get +
' > .calendar > .datepicker-controls > .text-right > .datepicker-button > svg > path'
).click({ force: true });
).click({ force: true});

cy.wait(500);
cy.get(
Expand Down

0 comments on commit eae015e

Please sign in to comment.