Skip to content

Commit

Permalink
fix: #85 use updateOne rather than update
Browse files Browse the repository at this point in the history
  • Loading branch information
driccio committed Feb 23, 2021
1 parent ccb8f40 commit 3372530
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class MongoDriver(private val mongoUri: String,
val set = "\$set";

executeMongoQuery("""
db.$EXECUTED_SCRIPTS_COLLECTION.update({
db.$EXECUTED_SCRIPTS_COLLECTION.updateOne({
"identifier": "${executedScript.identifier}",
"name": "${executedScript.name}"
}, {
Expand Down

0 comments on commit 3372530

Please sign in to comment.