package Daje::Database::Helper::LoadParameters;
use Mojo::Base  -base, -signatures, -async_await;
use v5.42;

has 'db';
has 'parameters';

sub load_parameter($self, $group, $parameter, $tools_projects_pkey) {
        my $parameters = Daje::Database::View::VToolsParameterValues->new(
            db => $self->db
        )->load_parameters_from_group_and_parameter(
            $group, $parameter, $tools_projects_pkey
        );

        $self->parameters(@{ $parameters->{data} }[0]) if ($parameters->{result} == 1) ;

        return $parameters->{result};
}

1;
#################### pod generated by Pod::Autopod - keep this line to make pod updates possible ####################

=head1 NAME

Daje::Database::Helper::LoadParameters


=head1 REQUIRES

L<v5.42> 

L<Mojo::Base> 


=head1 METHODS

=head2 load_parameter($self,

 load_parameter($self,();


=cut

