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