cheny 5 năm trước cách đây
mục cha
commit
3cfa259536
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/controller/transaction.js

+ 2 - 2
app/controller/transaction.js

@@ -14,9 +14,9 @@ class TransactionController extends Controller {
   }
 
   async findTransactionList() {
-    const res = await this.service.findTransactionList(this.ctx.request.body);
+    const data = await this.service.findTransactionList(this.ctx.request.body);
     // this.ctx.ok({ ...res });
-    this.ctx.ok({ res });
+    this.ctx.ok({ data });
   }
 }