TP-54479 | Fixed backend to accept date and timestamp in get incidents api call (#352)
* TP-38709 | Merging the changes to master on the logfix * TP-54479 | Fixed get incidents to acceept time stamp for time zone based results
This commit is contained in:
@@ -380,7 +380,7 @@ func (r *Repository) FetchAllIncidentsPaginated(
|
||||
query = query.Where("created_at >= ?", from)
|
||||
}
|
||||
if len(to) != 0 {
|
||||
query = query.Where("created_at <= ?", to+" 23:59:59.999999")
|
||||
query = query.Where("created_at <= ?", to)
|
||||
}
|
||||
|
||||
var totalElements int64
|
||||
|
||||
Reference in New Issue
Block a user