fix: reconcile physique targeting for queued posts

This commit is contained in:
jjbrunton committed 2026-08-10 18:23:23 +01:00
1 parent d0a8bd0e2f
commit d8d635e1ee
10 files changed
+250 -12

No files matched your search

+11
View File
@@ -175,6 +175,17 @@ export function createConfigRouter(ctx: WebContext): Router {
configStore.save(ctx.config);
if (parsedPhysiqueTargeting?.success && ctx.services.candidateQueue) {
const reconciliation = ctx.services.candidateQueue.reconcilePhysiqueTargeting(
parsedPhysiqueTargeting.data,
);
ctx.activity.push(
'info',
`Physique targeting reconciled ${reconciliation.retained} prepared image candidate(s)`
+ ` and rejected ${reconciliation.rejected}`,
);
}
ctx.getOnConfigChange()?.(ctx.runtimeConfig);
ctx.activity.push('info', 'Config updated via dashboard');