(programId, isRefresh = false, options = {})
| 39 | } |
| 40 | |
| 41 | export 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 | |
| 49 | export async function getRecordByRecordIDs(recordIDs, isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) { |
| 50 | const uniqueRecordIDs = [...new Set(recordIDs)].filter(Boolean); |
no test coverage detected