@live-change/balance-service 0.8.87 → 0.8.89

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 -0
  2. package/package.json +4 -4
package/operation.js CHANGED
@@ -257,6 +257,7 @@ definition.trigger({
257
257
  if(!operationData) throw "operationNotFound"
258
258
  if(operationData.state !== 'started') throw "operationNotStarted"
259
259
  console.log("operationData", operationData, "balance", balance)
260
+ balance = balance || operationData.balance
260
261
  if(operationData.balance !== balance) throw "balanceMismatch"
261
262
  const balanceData = await getBalance(balance, triggerService)
262
263
  const newAmount = config.currencyAdd(balanceData.amount, operationData.change)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/balance-service",
3
- "version": "0.8.87",
3
+ "version": "0.8.89",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,13 +21,13 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.8.87",
25
- "@live-change/relations-plugin": "^0.8.87",
24
+ "@live-change/framework": "^0.8.89",
25
+ "@live-change/relations-plugin": "^0.8.89",
26
26
  "lru-cache": "^7.12.0",
27
27
  "pluralize": "^8.0.0",
28
28
  "progress-stream": "^2.0.0",
29
29
  "prosemirror-model": "^1.18.1"
30
30
  },
31
- "gitHead": "133e0785e028c37eb6f903d7355e5470b2cc65d3",
31
+ "gitHead": "15d4b3dc445480608c993e4057be208192e97023",
32
32
  "type": "module"
33
33
  }