Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: Validate the payload before applying due schedules

Blue Mouse2a8e0be6ec34
diff --git a/backend/apps/community/src/feature-flag/feature-flag.controller.ts b/backend/apps/community/src/feature-flag/feature-flag.controller.ts
index 0fc34bb77..06a3f4373 100644
--- a/backend/apps/community/src/feature-flag/feature-flag.controller.ts
+++ b/backend/apps/community/src/feature-flag/feature-flag.controller.ts
@@ -668,10 +668,10 @@ export class FeatureFlagController {
}
}
- await this.featureFlagService.applyDueScheduledChanges(flag.projectId)
-
this.validateScheduledChange(flagDto.scheduledChange)
+ await this.featureFlagService.applyDueScheduledChanges(flag.projectId)
+
const updatePayload: Partial<FeatureFlag> = {
..._pick(flagDto, [
'key',