(programId, isRefresh = false, options = {})
| 39 | export async function getRecordByRecordIDs(recordIDs, isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) { |
| 40 | const uniqueRecordIDs = [...new Set(recordIDs)].filter(Boolean); |
| 41 | if (uniqueRecordIDs.length === 0) { |
| 42 | return {}; |
| 43 | } |
| 44 | const records = await getRecords(isRefresh, {priority}); |
| 45 | return Object.fromEntries(uniqueRecordIDs.flatMap((recordId) => ( |
| 46 | isRecordData(records[recordId]) ? [[recordId, records[recordId]]] : [] |
| 47 | ))); |
| 48 | } |
| 49 | |
| 50 | export async function getRecords(isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) { |
no test coverage detected