From 2e4acb97b4ef2a25274838f6d44db3615259e4c8 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 c29fc615f41..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_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; }