mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: retrieve project id from updated feature
This commit is contained in:
parent
4f31df4061
commit
bf0c66288b
@ -202,9 +202,9 @@ class FeatureController extends Controller {
|
||||
);
|
||||
if (featureToggleExists) {
|
||||
await this.featureService2.getFeature(featureName);
|
||||
const projectId = await this.featureService2.getProjectId(
|
||||
updatedFeature.name,
|
||||
);
|
||||
|
||||
const projectId = updatedFeature.project;
|
||||
|
||||
const value = await featureSchema.validateAsync(updatedFeature);
|
||||
const { enabled } = value;
|
||||
const updatedToggle = this.featureService2.updateFeatureToggle(
|
||||
|
Loading…
Reference in New Issue
Block a user