@live-change/balance-service 0.9.46 → 0.9.47

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.
Files changed (2) hide show
  1. package/operation.js +1 -2
  2. package/package.json +6 -6
package/operation.js CHANGED
@@ -206,10 +206,9 @@ definition.trigger({
206
206
 
207
207
  queuedBy: 'balance',
208
208
  async execute({ balance, causeType, cause, change }, { client, service, triggerService }, emit) {
209
- const operation = app.generateUid()
210
209
  const balanceData = await getBalance(balance, triggerService)
211
210
  if(!config.changePossible(balanceData.available, change)) throw "insufficientFunds"
212
- await triggerService({
211
+ const operation = await triggerService({
213
212
  service: definition.name,
214
213
  type: 'balance_createOperation',
215
214
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/balance-service",
3
- "version": "0.9.46",
3
+ "version": "0.9.47",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,11 +21,11 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/access-control-service": "^0.9.46",
25
- "@live-change/framework": "^0.9.46",
26
- "@live-change/relations-plugin": "^0.9.46",
27
- "@live-change/user-service": "^0.9.46"
24
+ "@live-change/access-control-service": "^0.9.47",
25
+ "@live-change/framework": "^0.9.47",
26
+ "@live-change/relations-plugin": "^0.9.47",
27
+ "@live-change/user-service": "^0.9.47"
28
28
  },
29
- "gitHead": "9d2fe9cbfb28f6cd389c8cbc5cf051f583f58e9e",
29
+ "gitHead": "5cafc5b8a200cebad9e0949109bf25ea095eab01",
30
30
  "type": "module"
31
31
  }