From 1c00db53aef9813a3355676f0d41cfef91a14bf5 Mon Sep 17 00:00:00 2001 From: Slendy Date: Tue, 18 Jul 2023 01:28:31 -0500 Subject: [PATCH] Fix photo upload timestamp regression --- .../Controllers/Resources/PhotosController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Resources/PhotosController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Resources/PhotosController.cs index 84509369..a9c640d8 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Resources/PhotosController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Resources/PhotosController.cs @@ -102,7 +102,7 @@ public class PhotosController : ControllerBase 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);