Skip to content

Commit

Permalink
Added a timestamp in the history_cleanup.sh logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-salunkhe-mettle committed Jul 31, 2024
1 parent 330baa9 commit 9f12911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/history_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ if [ ! -f "$csv_file" ]; then
fi

while IFS=',' read -r col1 col2 col3 col4; do
echo "Deleting entries for data: $col1, $col2, $col3, $col4"
DATE=$(date)
echo "($DATE) Deleting entries for data: $col1, $col2, $col3, $col4"

# Delete entry from the info history table
QUERY=$(echo "DELETE FROM fhir_endpoints_info_history WHERE url='$col1' AND operation='U' AND requested_fhir_version='$col3' AND entered_at = '$col2';")
Expand Down

0 comments on commit 9f12911

Please sign in to comment.