Skip to content

Commit

Permalink
when checking for certified users, use the certified attribute, not p…
Browse files Browse the repository at this point in the history
…assed
  • Loading branch information
afwillia committed Jul 30, 2024
1 parent 3ff9f67 commit 51297f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/synapse_rest_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ synapse_is_certified <- function(url="https://repo-prod.prod.sagebase.org/repo/v
ownerid <- user_profile[["ownerId"]]
url_req <- file.path(url, ownerid, endpoint)
req <- httr::GET(url_req)
httr::content(req)[["passed"]]
resp <- httr::content(req)
resp[["certified"]]

}

Expand Down
3 changes: 2 additions & 1 deletion functions/synapse_rest_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ synapse_is_certified <- function(url="https://repo-prod.prod.sagebase.org/repo/v
ownerid <- user_profile[["ownerId"]]
url_req <- file.path(url, ownerid, endpoint)
req <- httr::GET(url_req)
httr::content(req)[["passed"]]
resp <- httr::content(req)
resp[["certified"]]

}

Expand Down

0 comments on commit 51297f2

Please sign in to comment.