From 60ab1dc4eb6add1c663e1480e2225498cde7b443 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Wed, 8 May 2024 10:40:51 -0400 Subject: [PATCH] typo --- src/main/java/io/cryostat/rules/ScheduledArchiveJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/cryostat/rules/ScheduledArchiveJob.java b/src/main/java/io/cryostat/rules/ScheduledArchiveJob.java index 72db2e7ab..e1261a836 100644 --- a/src/main/java/io/cryostat/rules/ScheduledArchiveJob.java +++ b/src/main/java/io/cryostat/rules/ScheduledArchiveJob.java @@ -52,7 +52,7 @@ public void execute(JobExecutionContext ctx) throws JobExecutionException { long ruleId = (long) ctx.getJobDetail().getJobDataMap().get("rule"); Rule rule = Rule.find("id", ruleId).singleResult(); long targetId = (long) ctx.getJobDetail().getJobDataMap().get("target"); - Target target = Target.find("id", id).singleResult(); + Target target = Target.find("id", targetId).singleResult(); long recordingId = (long) ctx.getJobDetail().getJobDataMap().get("recording"); ActiveRecording recording = ActiveRecording.find("id", recordingId).singleResult();