Skip to content

Commit

Permalink
Allow date input as strings in 'snapshot.deleteSnapshots'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbayburt committed Sep 17, 2024
1 parent 7038c19 commit 13730b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ public int deleteSnapshots(User loggedInUser, Map dateDetails) {
Date endDate = null;

if (dateDetails.containsKey("startDate")) {
startDate = (Date)dateDetails.get("startDate");
startDate = parseInputValue(dateDetails.get("startDate"), Date.class);
}
if (dateDetails.containsKey("endDate")) {
endDate = (Date)dateDetails.get("endDate");
endDate = parseInputValue(dateDetails.get("endDate"), Date.class);
}
return deleteSnapshots(loggedInUser, startDate, endDate);
}
Expand Down

0 comments on commit 13730b1

Please sign in to comment.