Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging

This commit is contained in:
Fadli 2023-01-01 16:24:15 +07:00
commit ea951fea61

View File

@ -2220,12 +2220,7 @@ export class TransactionService {
if (!data) {
return {
statusCode: HttpStatus.NOT_FOUND,
message: 'No data to export'
};
} else {
try {
let rows = [];
// First create the array of keys/net_total so that we can sort it:
@ -2325,6 +2320,8 @@ export class TransactionService {
//returning the path of file
return File;
} catch (e) {
throw new HttpException('No data to export', HttpStatus.NOT_FOUND);
}
}