@bedrock/vc-delivery 7.18.0 → 7.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/issue.js +5 -0
- package/package.json +1 -1
package/lib/issue.js
CHANGED
|
@@ -197,6 +197,11 @@ function _getIssueZcap({
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
async function _issue({workflow, exchange, issueRequests, mediaType} = {}) {
|
|
200
|
+
if(issueRequests.length === 0) {
|
|
201
|
+
// no issue requests means nothing to issue or store
|
|
202
|
+
return {credentials: [], storedCredentials: [], exchangeChanged: false};
|
|
203
|
+
}
|
|
204
|
+
|
|
200
205
|
// create zcap client for issuing VCs
|
|
201
206
|
const {zcapClient, zcaps} = await getZcapClient({workflow});
|
|
202
207
|
|