mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-27 03:39:11 +00:00
Fix /publish response not sending full metadata
This commit is contained in:
parent
932f05f108
commit
f045bdf015
1 changed files with 2 additions and 4 deletions
|
@ -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}")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue