( startDate?: string, endDate?: string )
| 149 | } |
| 150 | |
| 151 | function buildDateConditions( |
| 152 | startDate?: string, |
| 153 | endDate?: string |
| 154 | ): { startCondition?: SQL; endCondition?: SQL } { |
| 155 | const result: { startCondition?: SQL; endCondition?: SQL } = {} |
| 156 | |
| 157 | if (startDate) { |
| 158 | result.startCondition = gte(workflowExecutionLogs.startedAt, new Date(startDate)) |
| 159 | } |
| 160 | if (endDate) { |
| 161 | result.endCondition = lte(workflowExecutionLogs.startedAt, new Date(endDate)) |
| 162 | } |
| 163 | |
| 164 | return result |
| 165 | } |
| 166 | |
| 167 | function buildSearchConditions(params: { |
| 168 | search?: string |
no outgoing calls
no test coverage detected