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 and Evan-Adam committed Jul 16, 2024
1 parent cc3b699 commit ccf9c61
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::class::module::ACTION_FINISH_KO, token => $options{token}, data => { message => 'cannot save previous 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 ccf9c61

Please sign in to comment.