bazaar-graphql
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "bazaar-graphql", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -197,5 +197,5 @@ const { | ||
}, | ||
unpublishResource: async (_, { id }, { sbot }) => { | ||
unpublishResource: async (_, { id }, { sbot, opts }) => { | ||
const affectedResource = await getEconomicResource(id, sbot) | ||
return publish(Object.assign({ type: economicEventType, affects: [ affectedResource.key ], action: unpublishAction }), sbot) | ||
return publish(Object.assign({ type: economicEventType, affects: [ affectedResource.key ], action: unpublishAction, scope: opts.scope }), sbot) | ||
.then(msg => { | ||
@@ -223,4 +223,4 @@ return { | ||
key: msg.key, | ||
provider: getUser(msg.value.content.provider, sbot), | ||
receiver: getUser(msg.value.content.receiver, sbot), | ||
provider: getUser(msg.value.content.provider, msg.value.content.scope, sbot), | ||
receiver: getUser(msg.value.content.receiver, msg.value.content.scope, sbot), | ||
affectedQuantity: [ { currency, value }], | ||
@@ -227,0 +227,0 @@ scope: msg.value.content.scope, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9810