From f045bdf01546d050d2064122089e83b492d3493f Mon Sep 17 00:00:00 2001 From: jvyden Date: Fri, 8 Oct 2021 18:39:47 -0400 Subject: [PATCH] Fix /publish response not sending full metadata --- ProjectLighthouse/Controllers/PublishController.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ProjectLighthouse/Controllers/PublishController.cs b/ProjectLighthouse/Controllers/PublishController.cs index 39cdcae3..5f6b7849 100644 --- a/ProjectLighthouse/Controllers/PublishController.cs +++ b/ProjectLighthouse/Controllers/PublishController.cs @@ -47,10 +47,8 @@ namespace ProjectLighthouse.Controllers { database.Slots.Add(slot); await database.SaveChangesAsync(); - - Request.Body.Position = 0; - string bodyString = await new StreamReader(Request.Body).ReadToEndAsync(); - return this.Ok(bodyString); + + return this.Ok(slot.Serialize()); } [HttpPost("unpublish/{id:int}")]