Fix /publish response not sending full metadata

This commit is contained in:
jvyden 2021-10-08 18:39:47 -04:00
commit f045bdf015
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -48,9 +48,7 @@ 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}")]