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

Function getRecordByProgram

src/Data/RecordData.js:41–47  ·  view source on GitHub ↗
(programId, isRefresh = false, options = {})

Source from the content-addressed store, hash-verified

39}
40
41export async function getRecordByProgram(programId, isRefresh = false, options = {}) {
42 const program = await getProgram(programId, isRefresh, options);
43 const recordIDs = program.Applicants.map(applicantID => {
44 return applicantID + '|' + programId;
45 });
46 return getRecordByRecordIDs(recordIDs, isRefresh, options);
47}
48
49export async function getRecordByRecordIDs(recordIDs, isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) {
50 const uniqueRecordIDs = [...new Set(recordIDs)].filter(Boolean);

Callers 2

loaderFunction · 0.90
actionFunction · 0.90

Calls 2

getProgramFunction · 0.90
getRecordByRecordIDsFunction · 0.85

Tested by

no test coverage detected