api history report
This commit is contained in:
@@ -101,7 +101,7 @@ function buildFilterQuery(filterQuery = [], fixedParams = []) {
|
||||
queryParams.push(from);
|
||||
queryParams.push(to);
|
||||
whereConditions.push(
|
||||
`${f.column} BETWEEN $${queryParams.length - 1} AND $${queryParams.length}`
|
||||
`CAST(${f.column} AS DATE) BETWEEN $${queryParams.length - 1} AND $${queryParams.length}`
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -184,7 +184,6 @@ function buildDateFilter(column, type, dateValue, fixedParams = []) {
|
||||
return { whereDateCondition: whereCondition, whereDateParams: queryParams };
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Build dynamic UPDATE
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user