Skip to content

Commit

Permalink
Merge pull request #137 from pbchase/fix_bugs_in_delete_erroneous_sur…
Browse files Browse the repository at this point in the history
…vey_reminders

Update etl/delete_erroneous_survey_reminders.R
  • Loading branch information
ChemiKyle authored Aug 24, 2023
2 parents ce15b7e + d1e25a8 commit e0dd386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etl/delete_erroneous_survey_reminders.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if (nrow(reminders_to_deactivate) > 0) {
sql_reminders_to_delete <-
paste(
"delete from redcap_surveys_scheduler_queue where ssq_id in (",
paste(reminders_to_deactivate$ssq_id, collapse = " "),
paste(reminders_to_deactivate$ssq_id, collapse = ","),
");"
)
rows_to_be_deleted <- tbl(rc_conn, "redcap_surveys_scheduler_queue") %>%
Expand Down
2 changes: 1 addition & 1 deletion study_template/cron/delete_erroneous_survey_reminders
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Run delete_erroneous_survey_reminders daily.
# Increase the frequency as needed to address more frequent survey reminders
# 5 7 * * * root /usr/bin/docker run --rm --env-file /rcc/example/.env redcapcustodian Rscript redcapcustodian/etl/delete_erroneous_survey_reminders.R
# 5 7 * * * root /usr/bin/docker run --rm --env-file /rcc/example/.env redcapcustodian Rscript etl/delete_erroneous_survey_reminders.R

0 comments on commit e0dd386

Please sign in to comment.