app/services/manager_management/team/delete_admin.rb
# Reject invite tokens for the manager if its status is invited.
#
# * Author: Shlok
# * Date: 08/01/2019
# * Reviewed By: Sunil
#
# @return [Result::Base]
#
Reject invite tokens for the manager if its status is invited.
Author: Shlok
Date: 08/01/2019
Reviewed By: Sunil
Reject invite tokens for the manager if its status is invited . Author : Shlok Date : 08 / 01 / 2019 Reviewed By : Sunil
def reject_invites
        kinds = [GlobalConstant::ManagerValidationHash.manager_invite_kind,
                 GlobalConstant::ManagerValidationHash.double_optin_kind,
                 GlobalConstant::ManagerValidationHash.reset_password_kind]
          ManagerValidationHash.where(
            manager_id: @manager_to_be_deleted_obj.id,
            kind: kinds,
            status: GlobalConstant::ManagerValidationHash.active_status
          ).update_all(
            status: GlobalConstant::ManagerValidationHash.inactive_status
          )
          success
      end
def reject_invites kinds = [ GlobalConstant :: ManagerValidationHash . manager_invite_kind , GlobalConstant :: ManagerValidationHash . double_optin_kind , GlobalConstant :: ManagerValidationHash . reset_password_kind ] ManagerValidationHash . where ( manager_id : @manager_to_be_deleted_obj . id , kind : kinds , status : GlobalConstant :: ManagerValidationHash . active_status ) . update_all ( status : GlobalConstant :: ManagerValidationHash . inactive_status ) success end
Reject invite tokens for the manager if its status is invited.
Reject invite tokens for the manager if its status is invited .
# Mark any other active invite token (s) for this manager as inactive
None
Result::Base