Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
surabhi-mahawar committed Aug 18, 2022
1 parent 3bc5607 commit 94ed899
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/uci/inbound/xmsg/XmsgHistoryController.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,18 @@ public List<Map<String, Object>> filterMessageState(List<XMessageDAO> xMessageDA
}
daoMap.put("payload", payloadMap);
daoMap.put("sentTimestamp", sentMap.get(xMessageDAO.getMessageId()).getTimestamp());
} else {
daoMap.put("sentTimestamp", null);
}
if(deliverdMap.get(xMessageDAO.getMessageId()) != null) {
daoMap.put("deliveryTimestamp", deliverdMap.get(xMessageDAO.getMessageId()).getTimestamp());
} else {
daoMap.put("deliveryTimestamp", null);
}
if(readMap.get(xMessageDAO.getMessageId()) != null) {
daoMap.put("readTimestamp", readMap.get(xMessageDAO.getMessageId()).getTimestamp());
} else {
daoMap.put("readTimestamp", null);
}
} catch (Exception ex) {
log.error("Exception when fetching payload: "+ex.getMessage());
Expand Down

0 comments on commit 94ed899

Please sign in to comment.