From ccf9c613c99fae45d797c0ef275f754846e93c1c Mon Sep 17 00:00:00 2001 From: jeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com> Date: Tue, 16 May 2023 13:20:34 +0200 Subject: [PATCH] fix(gorgone): Fix query to update mod_anomaly_service (#1470) --- gorgone/gorgone/modules/centreon/anomalydetection/class.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gorgone/gorgone/modules/centreon/anomalydetection/class.pm b/gorgone/gorgone/modules/centreon/anomalydetection/class.pm index dababaab17a..c1ea2649b16 100644 --- a/gorgone/gorgone/modules/centreon/anomalydetection/class.pm +++ b/gorgone/gorgone/modules/centreon/anomalydetection/class.pm @@ -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}, @@ -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; }