feat: make catalog-pages dedup a choosable step in Fix alles
The maintenance "Fix alles" now has a checkbox to include or skip the duplicate catalog_pages merge, so admins can choose whether to run it. removeDuplicates takes an includePages flag and fixEverything threads it through to the action.
This commit is contained in:
@@ -99,12 +99,12 @@ export async function applyAlignIdsAction(): Promise<
|
||||
}
|
||||
}
|
||||
|
||||
export async function fixEverythingAction(): Promise<
|
||||
ActionResult<maintenance.FixAllResult>
|
||||
> {
|
||||
export async function fixEverythingAction(input?: {
|
||||
dedupePages?: boolean;
|
||||
}): Promise<ActionResult<maintenance.FixAllResult>> {
|
||||
try {
|
||||
await guard();
|
||||
return actionOk(await maintenance.fixEverything());
|
||||
return actionOk(await maintenance.fixEverything(input ?? {}));
|
||||
} catch (e) {
|
||||
return handleActionError(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user