|
@@ -74,14 +74,13 @@ export class SignController implements BaseController {
|
|
|
}
|
|
|
@Get('/sign')
|
|
|
async sign(@Query() query: object) {
|
|
|
-
|
|
|
-
|
|
|
const qobj = omit(query, ['skip', 'limit']);
|
|
|
const others = pick(query, ['skip', 'limit']);
|
|
|
const { data, total } = await this.service.query(qobj, others);
|
|
|
- for (let i of data) {
|
|
|
- i = await this.serviceUtil.fillMatchInfo(i);
|
|
|
+ const list = [];
|
|
|
+ for (const i of data) {
|
|
|
+ list.push(await this.serviceUtil.fillMatchInfo(i));
|
|
|
}
|
|
|
- return { data, total };
|
|
|
+ return { data: list, total };
|
|
|
}
|
|
|
}
|