Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
shreelakshmijoshi committed Mar 30, 2023
1 parent 7d8504a commit a2ec2f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package iudx.resource.server.database.elastic;

import static iudx.resource.server.database.archives.Constants.*;

import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
import java.time.format.DateTimeParseException;
import java.util.List;
Expand Down Expand Up @@ -96,7 +98,7 @@ private void addDefaultForDev(Map<FilterType, List<Query>> queryLists,
}

private void addDefaultForProduction(Map<FilterType, List<Query>> queryLists) {
ZonedDateTime currentDateTime = ZonedDateTime.now().minusDays(defaultDateLimit);
OffsetDateTime currentDateTime = OffsetDateTime.now().minusDays(defaultDateLimit);
Query temporalQuery = RangeQuery
.of(r -> r.field("observationDateTime").gte(JsonData.of(currentDateTime.toString())))
._toQuery();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GRANT SELECT,INSERT,UPDATE,DELETE ON TABLE adaptors_details TO ${rsUser};

0 comments on commit a2ec2f0

Please sign in to comment.