Skip to content

Commit daf52c2

Browse files
authored
Merge pull request #423 from AppQuality/develop
fix(campaign): add where clause to update plan data in CpReqPlans
2 parents 8824285 + 45b23fb commit daf52c2

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

  • src/routes/dossiers/campaignId/_put

src/routes/dossiers/campaignId/_put/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,14 @@ export default class RouteItem extends UserRoute<{
174174

175175
if (!project || !project.customer_id) return;
176176

177-
await tryber.tables.CpReqPlans.do().update({
178-
workspace_id: project.customer_id,
179-
project_id: project.id,
180-
});
177+
await tryber.tables.CpReqPlans.do()
178+
.update({
179+
workspace_id: project.customer_id,
180+
project_id: project.id,
181+
})
182+
.where({
183+
id: plan.plan_id,
184+
});
181185
}
182186

183187
private async updateTesterVisibilityCriteria() {

0 commit comments

Comments
 (0)