mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-27 19:59:09 +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
|
@ -48,9 +48,7 @@ namespace ProjectLighthouse.Controllers {
|
||||||
database.Slots.Add(slot);
|
database.Slots.Add(slot);
|
||||||
await database.SaveChangesAsync();
|
await database.SaveChangesAsync();
|
||||||
|
|
||||||
Request.Body.Position = 0;
|
return this.Ok(slot.Serialize());
|
||||||
string bodyString = await new StreamReader(Request.Body).ReadToEndAsync();
|
|
||||||
return this.Ok(bodyString);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("unpublish/{id:int}")]
|
[HttpPost("unpublish/{id:int}")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue