Commit c3b6605a authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#65] connect with the right config to DB from Front

parent c91cfe4e
......@@ -169,7 +169,7 @@ sub _upgrade_tables {
sub _connect_dbh {
return Ravada::DB->instance();
return Ravada::DB->instance($CONFIG);
}
=head2 display_ip
......
......@@ -53,11 +53,11 @@ Internal constructor
sub BUILD {
my $self = shift;
my $config = Ravada::_init_config($self->config);
if ($self->connector) {
$self->connector(Ravada::DB->instance(connector => $self->connector));
} else {
Ravada::_init_config($self->config());
$self->connector(Ravada::_connect_dbh());
$self->connector(Ravada::DB->instance(config => $config));
}
$self->connector->dbh();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment