Move the enrichment switch to the domain that owns the places flags

This commit is contained in:
Maurice
2026-08-10 11:07:21 +02:00
committed by Maurice
parent e3b220603c
commit 92e4eaa476
5 changed files with 72 additions and 19 deletions
+2 -2
View File
@@ -214,11 +214,11 @@ export class AdminController {
}
@Get('places-enrich')
getPlacesEnrich() { return this.admin.getPlacesEnrich(); }
getPlacesEnrich() { return this.addons.getPlacesEnrich(); }
@Put('places-enrich')
updatePlacesEnrich(@CurrentUser() user: User, @Body() body: AdminFeatureToggleDto, @Req() req: Request) {
const result = this.admin.updatePlacesEnrich(body.enabled);
const result = this.addons.updatePlacesEnrich(body.enabled);
this.audit.writeAudit({ userId: user.id, action: 'admin.places_enrich', ip: getClientIp(req), details: { enabled: result.enabled } });
return result;
}