Skip to content

Commit

Permalink
fix(gorgone): Fix query to update mod_anomaly_service (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjaouen authored May 16, 2023
1 parent 82c7da9 commit 2e4acb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gorgone/gorgone/modules/centreon/anomalydetection/class.pm
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ sub save_centreon_previous_register {
' saas_model_id = ?,' .
' saas_metric_id = ?,' .
' saas_creation_date = ?, ' .
' saas_update_date = ?'
' saas_update_date = ?' .
' WHERE `id` = ?';
$query_append = ';';
push @bind_values, $self->{unregister_metrics_centreon}->{$_}->{saas_model_id}, $self->{unregister_metrics_centreon}->{$_}->{saas_metric_id},
Expand Down Expand Up @@ -605,7 +605,7 @@ sub action_saasregister {
}

if ($self->save_centreon_previous_register()) {
$self->send_log(code => GORGONE_ACTION_FINISH_KO, token => $options{token}, data => { message => 'cannot save previsous register' });
$self->send_log(code => GORGONE_ACTION_FINISH_KO, token => $options{token}, data => { message => 'cannot save previous register' });
return 1;
}

Expand Down

0 comments on commit 2e4acb9

Please sign in to comment.