yep
This commit is contained in:
@@ -39,7 +39,7 @@ public class SessionsController : ControllerBase
|
||||
public async Task<IActionResult> CreateSession([FromBody] CreateSessionCommand request)
|
||||
{
|
||||
var userId = User.GetShogiUserId();
|
||||
var session = new Domain.Aggregates.Session(request.Name, userId);
|
||||
var session = new Domain.Session(request.Name, userId);
|
||||
try
|
||||
{
|
||||
await sessionRepository.CreateSession(session);
|
||||
@@ -126,7 +126,7 @@ public class SessionsController : ControllerBase
|
||||
}
|
||||
else
|
||||
{
|
||||
session.Board.Move(command.From!, command.To, command.IsPromotion);
|
||||
session.Board.Move(command.From!, command.To, command.IsPromotion!.Value);
|
||||
}
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
|
||||
Reference in New Issue
Block a user