From c7503ee810a83cdd6fcf7e3576690700283db9e1 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Sat, 22 Jun 2024 00:26:52 +0200 Subject: [PATCH] refactor: use runContext non-deprecated methods --- src/main/java/io/kestra/plugin/mongodb/Find.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/kestra/plugin/mongodb/Find.java b/src/main/java/io/kestra/plugin/mongodb/Find.java index 879ba0f..d84e6e7 100644 --- a/src/main/java/io/kestra/plugin/mongodb/Find.java +++ b/src/main/java/io/kestra/plugin/mongodb/Find.java @@ -152,7 +152,7 @@ public Find.Output run(RunContext runContext) throws Exception { } private Pair store(RunContext runContext, FindIterable 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)) {