From e94f3cedf596924d7995f5fd073ce7847f34e241 Mon Sep 17 00:00:00 2001 From: himeshr Date: Wed, 18 Dec 2024 13:08:46 +0530 Subject: [PATCH] avniproject/avni-server#813 | Use parameter_value instead of long_val --- .../src/main/java/org/avni/server/dao/AvniJobRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avni-server-api/src/main/java/org/avni/server/dao/AvniJobRepository.java b/avni-server-api/src/main/java/org/avni/server/dao/AvniJobRepository.java index c9bfddc59..8f5e0a9a8 100644 --- a/avni-server-api/src/main/java/org/avni/server/dao/AvniJobRepository.java +++ b/avni-server-api/src/main/java/org/avni/server/dao/AvniJobRepository.java @@ -79,7 +79,7 @@ public String getLastJobStatusForSubjectType(SubjectType subjectType) { " left join batch_job_execution_params bjep on bje.job_execution_id = bjep.job_execution_id\n" + "where i.job_name = 'syncAttributesJob'\n" + " and bjep.parameter_name = 'subjectTypeId'\n" + - " and long_val = :subjectTypeId\n" + + " and bjep.parameter_value = :subjectTypeId::text\n" + " and start_time is not null\n" + "order by start_time desc\n" + "limit 1;";