cleanup, refactoring, usual stuff
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b671c661a7
commit
f15f1c8857
26 changed files with 183 additions and 209 deletions
|
@ -94,7 +94,7 @@ namespace Sledgemapper.Api.Hubs
|
|||
await Clients.Group(sessionName).Ping(new Ping{X=location.X, Y=location.Y, Player=player});
|
||||
}
|
||||
|
||||
public async Task<Sledgemapper.Shared.Entities.Session> JoinSession(string sessionName)
|
||||
public async Task<Shared.Entities.Session> JoinSession(string sessionName)
|
||||
{
|
||||
var session = _dbContext.Sessions.FirstOrDefault(s => s.SessionName == sessionName);
|
||||
var userId = int.Parse(Context.User.Identity.Name);
|
||||
|
@ -112,7 +112,7 @@ namespace Sledgemapper.Api.Hubs
|
|||
await Clients.Group(session.SessionName).NewPlayer(player);
|
||||
await Clients.Group(session.SessionName).RefreshPlayers();
|
||||
|
||||
var newSession = new Sledgemapper.Shared.Entities.Session
|
||||
var newSession = new Shared.Entities.Session
|
||||
{
|
||||
SessionName = session.SessionName,
|
||||
SessionId = session.SessionId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue