- add filename for excel histori transaksi
This commit is contained in:
parent
a57d3aa37f
commit
040d96a0e6
|
@ -26,6 +26,9 @@ export class ExcelController {
|
||||||
@Request() req,
|
@Request() req,
|
||||||
@Res() res: Response,
|
@Res() res: Response,
|
||||||
) {
|
) {
|
||||||
|
res.set({
|
||||||
|
'Content-Disposition': 'attachment; filename="package.xlsx"',
|
||||||
|
});
|
||||||
const result = await this.transactionService.exportDataExcel(
|
const result = await this.transactionService.exportDataExcel(
|
||||||
exportTransactionDto.dateStart,
|
exportTransactionDto.dateStart,
|
||||||
id,
|
id,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user