Skip to content

Commit

Permalink
Merge branch 'aiccra-staging' into aiccra-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjitm committed Apr 23, 2024
2 parents 61896ec + e5baf4e commit 0b33a86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ public String execute() throws Exception {
token = jsonResponse.getString("token");
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");

Date dueDate = dateFormat.parse(jsonResponse.getString("due_date"));
Date dueDate = null;
if (jsonResponse.has("due_date")) {
dueDate = dateFormat.parse(jsonResponse.getString("due_date"));
}

if (jsonResponse.has("updated_at")) {
dueDate = dateFormat.parse(jsonResponse.getString("updated_at"));
}

// Save token in DB
if (token != null && !token.isEmpty()) {
Expand Down
1 change: 1 addition & 0 deletions marlo-web/src/main/resources/custom/aicrra.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5337,6 +5337,7 @@ tipParameter.tipStatusService= Status Service Endpoint
tipParameter.tokenValue= Token Value
tipParameter.updateToken= Update Token
tipParameter.tokenDueDate= Token Due Date
tipParameter.tipEncryptionKey= Encryption Key

#pop-up guide
login.popup.title=Login
Expand Down

0 comments on commit 0b33a86

Please sign in to comment.