MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / addModifyApplicant

Function addModifyApplicant

src/Data/ApplicantData.js:126–139  ·  view source on GitHub ↗
(requestBody)

Source from the content-addressed store, hash-verified

124}
125
126export 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
141export async function removeApplicant(applicantId) {
142 /*

Callers 1

actionFunction · 0.90

Calls 2

apiRequestFunction · 0.90
setApplicantFunction · 0.85

Tested by

no test coverage detected