MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / createMergeRequest

Function createMergeRequest

openlibrary/components/MergeUI/utils.js:227–230  ·  view source on GitHub ↗
(workIds, primaryRecord, action = 'create-merged', comment = null)

Source from the content-addressed store, hash-verified

225 * @returns {Promise<Response>}
226 */
227export function createMergeRequest(workIds, primaryRecord, action = 'create-merged', comment = null) {
228 const normalizedIds = prepareIds(workIds).join(',');
229 return createRequest(normalizedIds, action, REQUEST_TYPES['WORK_MERGE'], comment, primaryRecord);
230}
231
232/**
233 * Normalizes and sorts an array of OLIDs.

Callers

nothing calls this directly

Calls 2

createRequestFunction · 0.90
prepareIdsFunction · 0.85

Tested by

no test coverage detected