From 6b0cb329ab0e6790ae8fca3add7c61b1bff2fb57 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:32:47 +0000 Subject: [PATCH] Lint --- app/controllers/organisations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/organisations_controller.rb b/app/controllers/organisations_controller.rb index d2546dd28..38c21d851 100644 --- a/app/controllers/organisations_controller.rb +++ b/app/controllers/organisations_controller.rb @@ -91,7 +91,7 @@ class OrganisationsController < ApplicationController selected_rent_periods = rent_period_params[:rent_periods].compact_blank @organisation = Organisation.new(org_params) if @organisation.save - @organisation.update(group: assign_group_number(@organisation.id, org_params[:group_member_id])) if org_params[:group_member] + @organisation.update!(group: assign_group_number(@organisation.id, org_params[:group_member_id])) if org_params[:group_member] OrganisationRentPeriod.transaction do selected_rent_periods.each { |period| OrganisationRentPeriod.create!(organisation: @organisation, rent_period: period) } end