fix
This commit is contained in:
parent
b04ef26c5f
commit
2c04a3c757
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import {
|
||||||
OnGatewayDisconnect,
|
OnGatewayDisconnect,
|
||||||
OnGatewayInit,
|
OnGatewayInit,
|
||||||
} from '@nestjs/websockets';
|
} from '@nestjs/websockets';
|
||||||
|
import { Inject, forwardRef } from '@nestjs/common';
|
||||||
import { Server, Socket } from 'socket.io';
|
import { Server, Socket } from 'socket.io';
|
||||||
import { RoomsService } from '../rooms/rooms.service';
|
import { RoomsService } from '../rooms/rooms.service';
|
||||||
import { RoomEventsService } from './room-events.service';
|
import { RoomEventsService } from './room-events.service';
|
||||||
|
|
@ -59,6 +60,7 @@ export class GameGateway implements OnGatewayConnection, OnGatewayDisconnect, On
|
||||||
server: Server;
|
server: Server;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
@Inject(forwardRef(() => RoomsService))
|
||||||
private roomsService: RoomsService,
|
private roomsService: RoomsService,
|
||||||
private roomEventsService: RoomEventsService,
|
private roomEventsService: RoomEventsService,
|
||||||
private prisma: PrismaService,
|
private prisma: PrismaService,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue