Skip to content

Commit

Permalink
chore: update runContext deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed May 13, 2024
1 parent d31b194 commit 0f7c321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/kestra/plugin/mongodb/AbstractLoad.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Output run(RunContext runContext) throws Exception {

try (
MongoClient client = this.connection.client(runContext);
BufferedReader inputStream = new BufferedReader(new InputStreamReader(runContext.uriToInputStream(from)))
BufferedReader inputStream = new BufferedReader(new InputStreamReader(runContext.storage().getFile(from)))
) {
MongoCollection<Bson> collection = this.collection(runContext, client);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/kestra/plugin/mongodb/Find.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private Pair<URI, Long> store(RunContext runContext, FindIterable<BsonDocument>
}

return Pair.of(
runContext.putTempFile(tempFile),
runContext.storage().putFile(tempFile),
count.get()
);
}
Expand Down

0 comments on commit 0f7c321

Please sign in to comment.