Skip to content

Commit e84927a

Browse files
committed
#924 | Fix breakage in sync attribute job
1 parent 30df1d4 commit e84927a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avni-server-data/src/main/java/org/avni/server/dao/ProgramEnrolmentRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ default void updateSyncAttributesForIndividual(Long individualId, Long addressId
125125
@Query(value = "update program_enrolment enl set " +
126126
"sync_concept_1_value = CAST((i.observations ->> CAST(:syncAttribute1 as text)) as text), " +
127127
"sync_concept_2_value = CAST((i.observations ->> CAST(:syncAttribute2 as text)) as text), " +
128-
"last_modified_date_time = (current_timestamp + id * (interval '1 millisecond')/1000), last_modified_by_id = :lastModifiedById " +
128+
"last_modified_date_time = (current_timestamp + enl.id * (interval '1 millisecond')/1000), last_modified_by_id = :lastModifiedById " +
129129
"from individual i " +
130130
"where enl.individual_id = i.id and i.subject_type_id = :subjectTypeId", nativeQuery = true)
131131
void updateConceptSyncAttributesForSubjectType(Long subjectTypeId, String syncAttribute1, String syncAttribute2, Long lastModifiedById);

0 commit comments

Comments
 (0)