Skip to content

Commit

Permalink
Merge pull request #405 from shreelakshmijoshi/fix-bug
Browse files Browse the repository at this point in the history
Update files
  • Loading branch information
Kailash Adhikari authored Mar 30, 2023
2 parents 7d8504a + a2ec2f0 commit 55314ed
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 55314ed

Please sign in to comment.