Skip to content

Commit 35328d9

Browse files
authored
Fix quick reports export (#946)
1 parent 126d647 commit 35328d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/src/Vote.Monitor.Hangfire/Jobs/Export/QuickReports/ExportQuickReportsJob.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private async Task<List<QuickReportModel>> GetQuickReports(Guid electionRoundId,
9898
QR."QuickReportLocationType",
9999
QR."IncidentCategory",
100100
QR."MonitoringObserverId",
101-
COALESCE(QR."LastModifiedOn", QR."CreatedOn") AS "Timestamp",
101+
QR."LastUpdatedAt" AS "Timestamp",
102102
QR."Title",
103103
QR."Description",
104104
QR."FollowUpStatus",
@@ -185,14 +185,14 @@ @LEVEL5 IS NULL
185185
)
186186
AND (
187187
@FROMDATE IS NULL
188-
OR COALESCE(QR."LastModifiedOn", QR."CreatedOn") >= @FROMDATE::TIMESTAMP
188+
OR QR."LastUpdatedAt" >= @FROMDATE::TIMESTAMP
189189
)
190190
AND (
191191
@TODATE IS NULL
192-
OR COALESCE(QR."LastModifiedOn", QR."CreatedOn") <= @TODATE::TIMESTAMP
192+
OR QR."LastUpdatedAt" <= @TODATE::TIMESTAMP
193193
)
194194
ORDER BY
195-
COALESCE(QR."LastModifiedOn", QR."CreatedOn") DESC
195+
QR."LastUpdatedAt" DESC
196196
""";
197197

198198
var queryArgs = new

0 commit comments

Comments
 (0)