Skip to content

Commit

Permalink
correctly clear whatsapp sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Oct 5, 2024
1 parent 68cd1bb commit 52b5c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/scripts/load-retrieved.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit 52b5c1e

Please sign in to comment.