Function
getDateQuery
(filters: Record<string, any>)
Source from the content-addressed store, hash-verified
| 223 | } |
| 224 | |
| 225 | function getDateQuery(filters: Record<string, any>) { |
| 226 | const { startDate, endDate } = filters; |
| 227 | |
| 228 | if (startDate) { |
| 229 | if (endDate) { |
| 230 | return `and website_event.created_at between {{startDate}} and {{endDate}}`; |
| 231 | } else { |
| 232 | return `and website_event.created_at >= {{startDate}}`; |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | return ''; |
| 237 | } |
| 238 | |
| 239 | function getQueryParams(filters: Record<string, any>) { |
| 240 | return { |
Tested by
no test coverage detected