fix: add coa in supplier

This commit is contained in:
ilham 2021-12-16 15:05:16 +07:00
parent 264b7312ed
commit bd469fe66a

View File

@ -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',
}; };