feat: set default file name on export

pull/20/head
Firman Ramdhani 2024-07-08 12:48:28 +07:00
parent d48ac84244
commit a2e05b4d59
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@ import { DATA_FORMAT, DATA_TYPE, REPORT_GROUP } from '../../../constant';
import { ReportConfigEntity } from '../../../entities/report-config.entity'; import { ReportConfigEntity } from '../../../entities/report-config.entity';
export default <ReportConfigEntity>{ export default <ReportConfigEntity>{
group_name: REPORT_GROUP.general_report, group_name: REPORT_GROUP.transaction_report,
unique_name: `${REPORT_GROUP.general_report}__sample`, unique_name: `${REPORT_GROUP.transaction_report}__sample`,
label: 'Sample General Report ', label: 'Sample General Report ',
table_schema: 'season_types main', table_schema: 'season_types main',
main_table_alias: 'main', main_table_alias: 'main',

View File

@ -7,7 +7,7 @@ export class GetReportDataDto {
@ApiProperty({ @ApiProperty({
name: 'group_name', name: 'group_name',
required: true, required: true,
default: REPORT_GROUP.general_report, default: REPORT_GROUP.transaction_report,
}) })
@IsString() @IsString()
group_name: string; group_name: string;
@ -15,7 +15,7 @@ export class GetReportDataDto {
@ApiProperty({ @ApiProperty({
name: 'unique_name', name: 'unique_name',
required: true, required: true,
default: `${REPORT_GROUP.general_report}__sample`, default: `${REPORT_GROUP.transaction_report}__sample`,
}) })
@IsString() @IsString()
unique_name: string; unique_name: string;