q-koa 12.0.1 → 12.0.2

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.
@@ -53,8 +53,8 @@ exports.refund = async ({
53
53
  })
54
54
  if (!orderDetail) throw new Error('不存在该订单')
55
55
  try {
56
- const length = lodash.get(orderDetail, 'order_refund_records', [])
57
- const refundNumber = length + 1
56
+ const refundRecords = lodash.get(orderDetail, 'order_refund_records', [])
57
+ const refundNumber = refundRecords.length + 1
58
58
 
59
59
  const data = {
60
60
  ...rest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.0.1",
3
+ "version": "12.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {