- add filename for excel histori transaksi
This commit is contained in:
parent
e67ee94e07
commit
e9eff08281
|
@ -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