Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 6947bc8

Browse files
Fix concatenation of case ids in development mode
1 parent f6a0980 commit 6947bc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sormas-backend/src/main/resources/visualisation/transform_contact.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ con = dbConnect(PostgreSQL(), user = DB_USER, dbname = DB_NAME, password = DB_PA
5151
#query contact table and ratin only contacts parsed from Sys.getenv
5252
if (CONTACT_IDS == "") {
5353
#for testing: get all valid contacts
54-
idContString = as.character(dbGetQuery(con, "select ct.id
54+
idContString = paste(dbGetQuery(con, "select ct.id
5555
from public.contact ct
5656
join public.cases cs on (ct.caze_id = cs.id)
5757
where ct.deleted = FALSE and ct.contactclassification != 'NO_CONTACT'
58-
and cs.caseclassification != 'NO_CASE' and cs.deleted = FALSE")$id)
58+
and cs.caseclassification != 'NO_CASE' and cs.deleted = FALSE")$id, collapse=",")
5959
} else {
6060
idContString = CONTACT_IDS
6161
}

0 commit comments

Comments
 (0)