Commit a61b2a1 1 parent 8c2ec48 commit a61b2a1 Copy full SHA for a61b2a1
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import runExtension from "roamjs-components/util/runExtension" ;
2
2
import getChildrenLengthByParentUid from "roamjs-components/queries/getChildrenLengthByParentUid" ;
3
3
import format from "date-fns/format" ;
4
- import subDays from "date-fns/subDays " ;
4
+ import addDays from "date-fns/addDays " ;
5
5
import getPageTitleByBlockUid from "roamjs-components/queries/getPageTitleByBlockUid" ;
6
6
import getParentUidByBlockUid from "roamjs-components/queries/getParentUidByBlockUid" ;
7
7
import updateBlock from "roamjs-components/writes/updateBlock" ;
@@ -113,8 +113,8 @@ export default runExtension(async (args) => {
113
113
dateFromPage && ! isNaN ( dateFromPage . valueOf ( ) )
114
114
? dateFromPage
115
115
: new Date ( ) ;
116
- const formattedStartDate = format ( subDays ( dateToUse , 1 ) , "yyyy-MM-dd" ) ;
117
- const formattedEndDate = format ( dateToUse , "yyyy-MM-dd" ) ;
116
+ const formattedStartDate = format ( dateToUse , "yyyy-MM-dd" ) ;
117
+ const formattedEndDate = format ( addDays ( dateToUse , 1 ) , "yyyy-MM-dd" ) ;
118
118
const bullets : string [ ] = [ ] ;
119
119
const fetchData = < T extends OuraEndpoint > (
120
120
dataType : T
You can’t perform that action at this time.
0 commit comments