Skip to content

Commit

Permalink
support #133
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 16, 2023
1 parent 809b122 commit 4319d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ZenodoManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,8 @@ ZenodoManager <- R6Class("ZenodoManager",
depositRecord = function(record, publish = FALSE){
data <- record
type <- ifelse(is.null(record$id), "POST", "PUT")
request <- ifelse(is.null(record$id), "deposit/depositions",
sprintf("deposit/depositions/%s", record$id))
request <- ifelse(is.null(record$id), "records",
sprintf("records/%s/draft", record$id))
zenReq <- ZenodoRequest$new(private$url, type, request, data = data,
token = self$getToken(),
logger = self$loggerType)
Expand Down

0 comments on commit 4319d10

Please sign in to comment.