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:
Ajay Devarakonda
2024-01-19 18:39:37 +05:30
committed by GitHub
parent 9ad824c7de
commit d8d17ef901

View File

@@ -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