(requestBody)
| 124 | } |
| 125 | |
| 126 | export async function addModifyApplicant(requestBody) { |
| 127 | /* |
| 128 | * Set the applicant to the local storage (i.e. localforage.getItem('applicants')), and post to the server. |
| 129 | * @param applicant [Object]: applicant information |
| 130 | */ |
| 131 | |
| 132 | await apiRequest(ADD_MODIFY_APPLICANT, { |
| 133 | body: { |
| 134 | newApplicant: requestBody.newApplicant, |
| 135 | content: requestBody.content, |
| 136 | }, |
| 137 | }); |
| 138 | await setApplicant(requestBody.content); |
| 139 | } |
| 140 | |
| 141 | export async function removeApplicant(applicantId) { |
| 142 | /* |
no test coverage detected