Skip to content

Commit

Permalink
#3943 Put Notification Id before Type in JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Jul 14, 2017
1 parent bf314dd commit 513b15b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public Response getAllNotificationsForUser() {
NullSafeJsonBuilder notificationObjectBuilder = jsonObjectBuilder();
JsonArrayBuilder reasonsForReturn = Json.createArrayBuilder();
Type type = notification.getType();
notificationObjectBuilder.add("type", type.toString());
notificationObjectBuilder.add("id", notification.getId());
notificationObjectBuilder.add("type", type.toString());
if (Type.RETURNEDDS.equals(type) || Type.SUBMITTEDDS.equals(type)) {
JsonArrayBuilder reasons = getReasonsForReturn(notification);
for (JsonValue reason : reasons.build()) {
Expand Down

0 comments on commit 513b15b

Please sign in to comment.