Skip to content

Commit

Permalink
[NOD-541] fix: add correct parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Oct 27, 2023
1 parent 3339e53 commit 7696ff4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void processNodoVerifyKOEvent (
// update event with the required parameters and other needed fields
properties[index].forEach((property, value) -> eventToBeStored.put(replaceDashWithUppercase(property), value));

Long insertedTimestampValue = getEventField(event, Constants.FAULTBEAN_TIMESTAMP_EVENT_FIELD, Integer.class, 0).longValue();
Long insertedTimestampValue = getEventField(event, Constants.FAULTBEAN_TIMESTAMP_EVENT_FIELD, Long.class, 0L);
String insertedDateValue = insertedTimestampValue == 0L ? Constants.NA : new SimpleDateFormat("yyyy-MM-dd").format(new Date(insertedTimestampValue));

// inserting the identification columns on event saved in Table Storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ private Constants() {}

public static final String ID_EVENT_FIELD = "id";
public static final String FAULTBEAN_TIMESTAMP_EVENT_FIELD = "faultBean.timestamp";
public static final String CREDITOR_ID_EVENT_FIELD = "creditor.idPA";
public static final String PSP_ID_EVENT_FIELD = "psp.idPsp";
public static final String NOTICE_NUMBER_EVENT_FIELD = "debtorPosition.noticeNumber";
public static final String ID_PA_EVENT_FIELD = "creditor.idPA";
public static final String ID_PSP_EVENT_FIELD = "psp.idPsp";
Expand Down

0 comments on commit 7696ff4

Please sign in to comment.