MCPcopy Index your code
hub / github.com/simstudioai/sim / buildDateConditions

Function buildDateConditions

apps/sim/lib/logs/filters.ts:151–165  ·  view source on GitHub ↗
(
  startDate?: string,
  endDate?: string
)

Source from the content-addressed store, hash-verified

149}
150
151function 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
167function buildSearchConditions(params: {
168 search?: string

Callers 1

buildFilterConditionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected