From 52b5c1ec32627bccc3befdbe930072da0e9ca13a Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Sat, 5 Oct 2024 09:12:20 -0300 Subject: [PATCH] correctly clear whatsapp sessions --- backend/scripts/load-retrieved.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/scripts/load-retrieved.sh b/backend/scripts/load-retrieved.sh index 340dc03..5772235 100755 --- a/backend/scripts/load-retrieved.sh +++ b/backend/scripts/load-retrieved.sh @@ -73,7 +73,7 @@ for input_file in "$INPUT_DIR"/*.csv; do done echo "Clearing Whatsapp Sessions" -PGPASSWORD="${DB_PASS}" psql -h "${DB_HOST}" -U "${DB_USER}" -d "${DB_NAME}" -c "UPDATE \"Whatsapps\" SET session='', status='CLOSED'" &> /tmp/clearwhatsapps.log +PGPASSWORD="${DB_PASS}" psql -h "${DB_HOST}" -U "${DB_USER}" -d "${DB_NAME}" -c "UPDATE \"Whatsapps\" SET session='', status='DISCONNECTED'" &> /tmp/clearwhatsapps.log if [ $? -gt 0 ]; then echo "Error clearing Whatsapp sessions:"