feat: add organizeSql option for organized catalog_pages with English captions
This commit is contained in:
1 parent
2ee5ba5c4c
commit
04b84e6055
2 files changed
+316
-2
No files matched your search
@@ -125,6 +125,7 @@ export interface CatalogAuditOptions {
|
|||||||
repairNitros?: boolean;
|
repairNitros?: boolean;
|
||||||
sql?: boolean;
|
sql?: boolean;
|
||||||
applySql?: boolean;
|
applySql?: boolean;
|
||||||
|
organizeSql?: boolean;
|
||||||
repairFurniData?: boolean;
|
repairFurniData?: boolean;
|
||||||
repairStructure?: boolean;
|
repairStructure?: boolean;
|
||||||
}
|
}
|
||||||
@@ -316,6 +317,7 @@ export async function runCatalogAudit(
|
|||||||
classname: item.item_name,
|
classname: item.item_name,
|
||||||
itemId: item.id,
|
itemId: item.id,
|
||||||
itemType: item.type,
|
itemType: item.type,
|
||||||
|
publicName: item.public_name,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -652,7 +654,9 @@ export async function runCatalogAudit(
|
|||||||
message: `Generating catalog SQL for ${missingCatalogEntries.length} items…`,
|
message: `Generating catalog SQL for ${missingCatalogEntries.length} items…`,
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const result = await generateCatalogSql(missingCatalogEntries);
|
const result = await generateCatalogSql(missingCatalogEntries, {
|
||||||
|
organizeSql: options?.organizeSql,
|
||||||
|
});
|
||||||
catalogSqlCount = result.count;
|
catalogSqlCount = result.count;
|
||||||
onEvent?.({
|
onEvent?.({
|
||||||
type: "sql_ready",
|
type: "sql_ready",
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user