Explorar o código

修复上移bug

laiguoran %!s(int64=3) %!d(string=hai) anos
pai
achega
561331add6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/service/change_ledger.js

+ 1 - 0
app/service/change_ledger.js

@@ -597,6 +597,7 @@ module.exports = app => {
                 if (!this.newBills) {
                     await this.transaction.update(this.ctx.service.ledger.tableName, { id: pre.id, order: pre[this.setting.order] + count });
                 }
+                order.push(pre[this.setting.order] + count);
                 await this.transaction.commit();
                 this.transaction = null;
             } catch (err) {