(applicantId, isRefresh = false, options = {})
| 31 | } |
| 32 | |
| 33 | export async function getRecordByApplicant(applicantId, isRefresh = false, options = {}) { |
| 34 | const applicant = await getApplicant(applicantId, isRefresh, options); |
| 35 | const recordIDs = Object.keys(applicant.Programs).map(programID => { |
| 36 | return applicantId + '|' + programID; |
| 37 | }); |
| 38 | return getRecordByRecordIDs(recordIDs, isRefresh, options); |
| 39 | } |
| 40 | |
| 41 | export async function getRecordByProgram(programId, isRefresh = false, options = {}) { |
| 42 | const program = await getProgram(programId, isRefresh, options); |
no test coverage detected