1
0
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:
Fredrik Oseberg 2021-08-19 15:22:29 +02:00
parent 4f31df4061
commit bf0c66288b

View File

@ -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(