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}")]