Skip to content

Commit

Permalink
Update sequester_orphans.R
Browse files Browse the repository at this point in the history
Quit if orphaned_projects is empty.
  • Loading branch information
pbchase committed Jan 23, 2025
1 parent 131dad6 commit b18112d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etl/sequester_orphans.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ email_info <-
filter(!is.na(project_owner_email)) %>%
select(project_owner_email, project_owner_full_name, user_suspended_time, project_id, app_title, project_hyperlink, creation_time, last_logged_event)

# if there is nothing to do, then exit
if(nrow(orphaned_projects) == 0) {
quit()
}

# Sequester the orphans
result <- sequester_projects(
conn = rc_conn,
Expand Down

0 comments on commit b18112d

Please sign in to comment.