fix(ci): format export selection helper
This commit is contained in:
1 file changed
+1
-6
@@ -7,12 +7,7 @@ export function buildSelectedTablesPayload(allTables: string[], selectedTables:
|
||||
return allTables.filter((table) => selected.has(table));
|
||||
}
|
||||
|
||||
export function isDatabaseExportTableSelectionValid(options: {
|
||||
allTableCount: number;
|
||||
selectedTableCount: number;
|
||||
includeStructure: boolean;
|
||||
includeData: boolean;
|
||||
}): boolean {
|
||||
export function isDatabaseExportTableSelectionValid(options: { allTableCount: number; selectedTableCount: number; includeStructure: boolean; includeData: boolean }): boolean {
|
||||
if (!options.includeStructure && !options.includeData) return true;
|
||||
return options.allTableCount === 0 || options.selectedTableCount > 0;
|
||||
}
|
||||
Reference in new issue
Block a user