cheny hace 5 años
padre
commit
3cfa259536
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 });
   }
 }