fix: reconcile physique targeting for queued posts
This commit is contained in:
1 parent
d0a8bd0e2f
commit
d8d635e1ee
10 files changed
+250
-12
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user