Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/pryv-cmc/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,12 @@ async function requestScopeUpdate (conn, params) {
async function readOffer (capabilityUrl, opts) {
const pryv = (opts && opts.pryv) || require('pryv');
const cap = new pryv.Connection(capabilityUrl);
// `events.get` takes `streams` (recursive read filter), not `streamIds`
// (which is the events.create write target). Mirror the field used by
// the other events.get callers in this file (listInvites, waitForAccept,
// listAcceptedRelationships).
const events = await cap.apiOne('events.get', {
streamIds: [NS_INTERNAL + ':offer'],
streams: [NS_INTERNAL + ':offer'],
limit: 1
}, 'events');
if (events.length === 0) {
Expand Down
Loading