feat: Add new diffing
This commit is contained in:
committed by
Khaled Garbaya
parent
fec1fa8a41
commit
4344b6ff6b
@@ -52,8 +52,9 @@ module.exports.getSpace = assert((api = `cda`) => {
|
||||
* @returns {Object}
|
||||
*/
|
||||
|
||||
module.exports.getEntry = assert((entryId, api = `cda`) => {
|
||||
return getClient(api).getEntry(entryId)
|
||||
module.exports.getEntry = assert((entryId, contentType, api = `cda`) => {
|
||||
return getClient(api).getEntries({content_type: contentType, 'sys.id': entryId})
|
||||
.then((response) => response.items[0])
|
||||
}, 'Entry')
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user