Skip to content

Commit

Permalink
fix(drop_diseasystore): Fix logic testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Feb 27, 2024
1 parent e9e2307 commit d8dfacf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/drop_diseasystore.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ drop_diseasystore <- function(pattern = NULL,


# Check if logs is in the table, if yes, all tables must be deleted
if ("logs" %in% tables_to_delete$table &&
!identical(dplyr::select(tables_to_delete, !"db_table_id"), SCDB::get_tables(conn, ds_context))) {
if ("logs" %in% tables_to_delete$table && !identical(tables_to_delete, SCDB::get_tables(conn, ds_context))) {
stop(glue::glue("'{schema}.logs' set to delete. Can only delete if entire feature store is dropped."))
}

Expand Down

0 comments on commit d8dfacf

Please sign in to comment.