Skip to content

Commit 54e99d8

Browse files
committed
Record entries in the database with inset-only priviledges
1 parent 245cd95 commit 54e99d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/record_sdd.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ record_sdd <- function(tutorial_id, tutorial_version, user_id, event, data) {
5050
#url = "mongodb://sdd:sdd@ds125388.mlab.com:25388/sdd-test")$insert(entry)
5151
url = "mongodb://sdd:sdd@sdd-umons-shard-00-00-umnnw.mongodb.net:27017,sdd-umons-shard-00-01-umnnw.mongodb.net:27017,sdd-umons-shard-00-02-umnnw.mongodb.net:27017/test?ssl=true&replicaSet=sdd-umons-shard-0&authSource=admin"),
5252
silent = TRUE)
53-
if (!inherits(m, "try-error") &&
53+
if (!inherits(m, "try-error") #&&
5454
# No run() methods in mongolite 1.5
5555
#m$run(command = "{\"ping\": 1}", simplify = TRUE)$ok == 1) {
56-
m$count() > -1) {
56+
#m$count() > -1
57+
) {
5758
res <- try(m$insert(entry), silent = TRUE)
5859
# If there is something in the biodatascience file, inject it also now
5960
if (!inherits(res, "try-error")) {

0 commit comments

Comments
 (0)