Skip to content

Commit

Permalink
refactor: use runContext non-deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Jun 21, 2024
1 parent f6e0054 commit c7503ee
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -152,7 +152,7 @@ public Find.Output run(RunContext runContext) throws Exception {
}

private Pair<URI, Long> store(RunContext runContext, FindIterable<BsonDocument> documents) throws IOException {
File tempFile = runContext.tempFile(".ion").toFile();
File tempFile = runContext.workingDir().createTempFile(".ion").toFile();
AtomicLong count = new AtomicLong();

try (OutputStream output = new FileOutputStream(tempFile)) {
Expand Down

0 comments on commit c7503ee

Please sign in to comment.