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

Function setApplicantIDByDisplayName

src/Data/ApplicantData.js:37–48  ·  view source on GitHub ↗
(applicants)

Source from the content-addressed store, hash-verified

35}
36
37export async function setApplicantIDByDisplayName(applicants) {
38 /*
39 * Set the list of applicants to the local storage (i.e. localforage.getItem('applicants'))
40 * @param applicants [Array]: list of applicants
41 */
42 if (!applicants) {
43 return;
44 }
45 const displayName = await getDisplayName();
46 const metadata = await getMetadata(displayName, true);
47 await setMetadata({...metadata, ApplicantIDs: applicants}, displayName);
48}
49
50export async function deleteApplicantIDByDisplayName(applicantId) {
51 /*

Callers 2

setApplicantFunction · 0.85

Calls 3

getDisplayNameFunction · 0.90
getMetadataFunction · 0.90
setMetadataFunction · 0.90

Tested by

no test coverage detected