diff --git a/FU.API/FU.API/Services/PostService.cs b/FU.API/FU.API/Services/PostService.cs index 7da21c1b..0aaa871d 100644 --- a/FU.API/FU.API/Services/PostService.cs +++ b/FU.API/FU.API/Services/PostService.cs @@ -76,6 +76,8 @@ public async Task UpdatePost(Post postChanges) throw new PostException("The updated post's creator does not match the old post's creator", HttpStatusCode.UnprocessableEntity); } + AssertValidDateAndTime(postChanges); + ogPost.Game = await _dbContext.Games.FindAsync(postChanges.GameId) ?? throw new NonexistentGameException(); ogPost.Description = postChanges.Description; ogPost.MaxPlayers = postChanges.MaxPlayers;