diff --git a/controllers/beneficiaries.controllers.js b/controllers/beneficiaries.controllers.js index 3f92890..c6bcb70 100644 --- a/controllers/beneficiaries.controllers.js +++ b/controllers/beneficiaries.controllers.js @@ -69,7 +69,6 @@ const editBeneficiary = async (req, res) => { const beneficiaryId = req.params?.beneficiaryId; console.log(req.body); - if (beneficiaryId) { const beneficiary = Beneficiary.findByIdAndUpdate( beneficiaryId, diff --git a/models/Beneficiary.js b/models/Beneficiary.js index d6e9356..bba11a1 100644 --- a/models/Beneficiary.js +++ b/models/Beneficiary.js @@ -84,43 +84,43 @@ const BeneficiarySchema = new Schema({ type: String, // change this when we know how to store photos }, hasBankAccountIntake: { - type: Boolean + type: Boolean, }, hasBankAccountCompletion: { - type: Boolean + type: Boolean, }, englishLvlIntake: { - type: Number + type: Number, }, englishLvlCompletion: { - type: Number + type: Number, }, computerSkillsIntake: { - type: Number + type: Number, }, computerSkillsCompletion: { - type: Number + type: Number, }, emotionalWellnessIntake: { - type: Number + type: Number, }, emotionalWellnessCompletion: { - type: Number + type: Number, }, incomeIntake: { - type: Number + type: Number, }, incomeCompletion: { - type: Number + type: Number, }, savingsIntake: { - type: Number + type: Number, }, savingsCompletion: { - type: Number + type: Number, }, hasFoundWorkCompletion: { - type: Boolean + type: Boolean, }, });