MaiXinRong 3 weeks ago
parent
commit
bfb3818159
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/budget_controller.js

+ 1 - 1
app/controller/budget_controller.js

@@ -133,7 +133,7 @@ module.exports = app => {
                 const data = JSON.parse(ctx.request.body.data);
                 if (data.final_type !== ctx.budget.final_type) {
                     await ctx.service.budget.defaultUpdate({ id: ctx.budget.id, final_type: data.final_type });
-                    ctx.budget.final_type === data.final_type;
+                    ctx.budget.final_type = data.final_type;
                 }
                 if (ctx.budget.final_id && data.final_id !== ctx.budget.final_id) {
                     const final = await ctx.service.budgetFinal.getAllDataByCondition({ where: { final_id: ctx.budget.final_id } });