File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/io/elastic/jdbc/triggers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ public final void execute(ExecutionParameters parameters) {
49
49
Timestamp cts = new java .sql .Timestamp (cDate .getTimeInMillis ());
50
50
String formattedDate = new SimpleDateFormat (PROPERTY_DATETIME_FORMAT ).format (cts );
51
51
52
- if (configuration .containsKey (PROPERTY_POLLING_VALUE ) && Utils
53
- .getNonNullString (configuration , PROPERTY_POLLING_VALUE ).matches (DATETIME_REGEX )) {
54
- pollingValue = Timestamp .valueOf (configuration .getString (PROPERTY_POLLING_VALUE ));
55
- } else if (snapshot .containsKey (PROPERTY_POLLING_VALUE ) && Utils
52
+ if (snapshot .containsKey (PROPERTY_POLLING_VALUE ) && Utils
56
53
.getNonNullString (snapshot , PROPERTY_POLLING_VALUE ).matches (DATETIME_REGEX )) {
54
+ pollingValue = Timestamp .valueOf (configuration .getString (PROPERTY_POLLING_VALUE ));
55
+ } else if (configuration .containsKey (PROPERTY_POLLING_VALUE ) && Utils
56
+ .getNonNullString (configuration , PROPERTY_POLLING_VALUE ).matches (DATETIME_REGEX )) {
57
57
pollingValue = Timestamp .valueOf (snapshot .getString (PROPERTY_POLLING_VALUE ));
58
58
} else {
59
59
LOGGER .info (
You can’t perform that action at this time.
0 commit comments