Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ export class TableSettingsController {
@Body('icon') icon: string,
@Body('allow_csv_export') allow_csv_export: boolean,
@Body('allow_csv_import') allow_csv_import: boolean,
@Body('list_per_page') list_per_page: number,
@Body('list_fields') list_fields: string[],
@Body('ordering') ordering: string,
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ordering parameter is declared as string, but based on the entity definition and usage in the codebase, it should be typed as QueryOrderingEnum | null. The entity uses QueryOrderingEnum (which has values 'ASC' or 'DESC'), and the data structure also defines it as optional. Consider updating the type to ensure type safety and consistency with the rest of the codebase.

Copilot uses AI. Check for mistakes.
@Body('ordering_field') ordering_field: string,
@UserId() userId: string,
@MasterPassword() masterPwd: string,
): Promise<FoundTableSettingsDs> {
Expand All @@ -215,6 +219,10 @@ export class TableSettingsController {
icon: icon,
allow_csv_export: allow_csv_export,
allow_csv_import: allow_csv_import,
list_fields,
list_per_page,
ordering,
ordering_field,
};

const errors = this.validateParameters(inputData);
Expand Down
Loading