Fix photo upload timestamp regression

This commit is contained in:
Slendy 2023-07-18 01:28:31 -05:00
parent 20a5fa6aa3
commit 1c00db53ae
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

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