mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-13 08:41:27 +00:00
Serialization refactor hotfixes
Fixes user heart count Fixes searches not working Fixes text/plain content not outputting
This commit is contained in:
parent
329ab66043
commit
1e8ef8c679
4 changed files with 6 additions and 4 deletions
|
@ -235,7 +235,7 @@ public class PublishController : ControllerBase
|
|||
oldSlot.MaximumPlayers = Math.Clamp(slot.MaximumPlayers, 1, 4);
|
||||
|
||||
await this.database.SaveChangesAsync();
|
||||
return this.Ok(SlotBase.CreateFromEntity(oldSlot, this.GetToken()));
|
||||
return this.Ok(SlotBase.CreateFromEntity(oldSlot, token));
|
||||
}
|
||||
|
||||
int usedSlots = await this.database.Slots.CountAsync(s => s.CreatorId == token.UserId && s.GameVersion == slotVersion);
|
||||
|
@ -272,7 +272,7 @@ public class PublishController : ControllerBase
|
|||
|
||||
Logger.Success($"Successfully published level {slot.Name} (id: {slot.SlotId}) by {user.Username} (id: {user.UserId})", LogArea.Publish);
|
||||
|
||||
return this.Ok(SlotBase.CreateFromEntity(slotEntity, this.GetToken()));
|
||||
return this.Ok(SlotBase.CreateFromEntity(slotEntity, token));
|
||||
}
|
||||
|
||||
[HttpPost("unpublish/{id:int}")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue