mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-12 16:21:28 +00:00
Fix photo upload timestamp regression
This commit is contained in:
parent
20a5fa6aa3
commit
1c00db53ae
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ public class PhotosController : ControllerBase
|
||||||
|
|
||||||
if (photo.Subjects?.Count > 4) return this.BadRequest();
|
if (photo.Subjects?.Count > 4) return this.BadRequest();
|
||||||
|
|
||||||
if (photo.Timestamp > TimeHelper.Timestamp) photo.Timestamp = TimeHelper.Timestamp;
|
if (photo.Timestamp > TimeHelper.Timestamp) photoEntity.Timestamp = TimeHelper.Timestamp;
|
||||||
|
|
||||||
this.database.Photos.Add(photoEntity);
|
this.database.Photos.Add(photoEntity);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue