Simplified setting to/from dates
This commit is contained in:
parent
d2188a3f55
commit
452931bfb8
1 changed files with 3 additions and 4 deletions
|
@ -412,11 +412,10 @@ public class RealmAdminResource {
|
|||
query.user(user);
|
||||
}
|
||||
|
||||
if (dateFrom != null && dateTo != null) {
|
||||
query.fromDate(dateFrom).toDate(dateTo);
|
||||
} else if(dateFrom != null) {
|
||||
if(dateFrom != null) {
|
||||
query.fromDate(dateFrom);
|
||||
} else if(dateTo != null) {
|
||||
}
|
||||
if(dateTo != null) {
|
||||
query.toDate(dateTo);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue