Dope Ranking / status updated
This commit is contained in:
@@ -58,8 +58,8 @@ export class GameService {
|
||||
async generateToken(user : User, grantTicketDto : GrantTicketDto)
|
||||
{
|
||||
console.log(user.status);
|
||||
// if (user.status === "In Game" || user.status === "In Pool")
|
||||
// return new HttpException("You can't play two games", HttpStatus.FORBIDDEN);
|
||||
if (user.status === "In Game" || user.status === "In Pool")
|
||||
return new HttpException("You can't play two games", HttpStatus.FORBIDDEN);
|
||||
if (grantTicketDto.isGameIsWithInvitation === true)
|
||||
{
|
||||
const secondUser : Partial<User> = await this.userService.findOneByUsername(user.id.toString(), grantTicketDto.playerTwoUsername)
|
||||
|
||||
Reference in New Issue
Block a user