fix: add coa in supplier
This commit is contained in:
parent
264b7312ed
commit
bd469fe66a
|
@ -130,11 +130,10 @@ export class UsersController {
|
||||||
@Public()
|
@Public()
|
||||||
@Get('supplier')
|
@Get('supplier')
|
||||||
async findAllSupplier(@Query('page') page: number) {
|
async findAllSupplier(@Query('page') page: number) {
|
||||||
const [data, count] = await this.supplierService.findAllSupplier(page);
|
const data = await this.supplierService.findAllSupplier(page);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
data,
|
...data,
|
||||||
count,
|
|
||||||
statusCode: HttpStatus.OK,
|
statusCode: HttpStatus.OK,
|
||||||
message: 'success',
|
message: 'success',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user