Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Feb 25, 2024
1 parent 5e86252 commit a91a2d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/BUTR.CrashReportServer/Controllers/ReportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public ActionResult<IEnumerable<FileMetadata>> GetFilenameDates(ICollection<stri
return Ok(_dbContext.IdEntities
.Where(x => filenamesWithExtension.Contains(x.FileId))
.AsEnumerable()
.Select(x => new FileMetadata(x.FileId, x.CrashReportId, x.Version, x.Created.ToUniversalTime())));
.Select(x => new FileMetadata(x.FileId, x.CrashReportId, x.Version, x.Created)));
}

[Authorize]
Expand All @@ -184,8 +184,8 @@ public ActionResult<IEnumerable<FileMetadata>> GetNewCrashReportsDates([FromBody
return BadRequest();

return Ok(_dbContext.IdEntities
.Where(x => x.Created.Ticks > body.DateTime.Ticks)
.Select(x => new FileMetadata(x.FileId, x.CrashReportId, x.Version, x.Created.ToUniversalTime())));
.Where(x => x.Created > body.DateTime)
.Select(x => new FileMetadata(x.FileId, x.CrashReportId, x.Version, x.Created)));
}

[AllowAnonymous]
Expand All @@ -208,6 +208,7 @@ public IActionResult SitemapIndex()
};
return Ok(sitemap);
}

[AllowAnonymous]
[HttpGet("sitemap_{idx:int}.xml")]
[Produces("application/xml")]
Expand Down

0 comments on commit a91a2d2

Please sign in to comment.