Skip to content

Commit

Permalink
add query to end open visits at night
Browse files Browse the repository at this point in the history
  • Loading branch information
drizzentic committed Sep 7, 2023
1 parent 4996151 commit c35b047
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions conf/sync-jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,17 @@
{
"name": "Update Prediction Model's Days Defaulted",
"procedure": "CALL predictions.generate_flat_ml_days_defaulted_v1_0();",
"priority": 30,
"priority": 31,
"isEnabled": true,
"children": []
},
{
"name": "Close Visits",
"procedure": "UPDATE amrs_migration.visit v SET v.date_stopped = DATE_ADD(v.date_started, INTERVAL 12 HOUR), v.changed_by = 165703, v.date_changed = NOW() WHERE v.date_stopped IS NULL AND ABS(TIMESTAMPDIFF(HOUR, v.date_started, NOW())) >= 12 AND v.voided = 0;",
"priority": 32,
"isEnabled": true,
"children": []
}
]
}
}
}

0 comments on commit c35b047

Please sign in to comment.