Skip to content

Commit e65866f

Browse files
committed
Remove custom function causing periodic report end dates to be one day earlier than desired
1 parent d2ea176 commit e65866f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

dbschema/common.esdl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,4 @@ module default {
2727
# This will be reflected to dynamically inject portable shapes in our EdgeQL queries.
2828
function hydrate(typeName: str, scopedValue: json) -> str
2929
using (typeName);
30-
31-
# Get the inclusive upper bound of the given date range.
32-
function date_range_get_upper(period: range<cal::local_date>) -> cal::local_date
33-
using (<cal::local_date><str>assert_exists(range_get_upper(period)) - <cal::date_duration>"1 day");
3430
}

dbschema/periodic-report.esdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module default {
22
abstract type PeriodicReport extending Resource, Mixin::Embedded {
33
required period: range<cal::local_date>;
44
`start` := range_get_lower(.period);
5-
`end` := date_range_get_upper(.period);
5+
`end` := range_get_upper(.period);
66

77
skippedReason: str;
88

0 commit comments

Comments
 (0)