diff --git a/backend/src/common/database/model/game-match-queue.ts b/backend/src/common/database/model/game-match-queue.ts new file mode 100644 index 00000000..8846d60d --- /dev/null +++ b/backend/src/common/database/model/game-match-queue.ts @@ -0,0 +1,4 @@ +export interface GameMatchQueue { + socketId: string; + userId: number; +} diff --git a/backend/src/common/database/repository/game-match-queue.repository.ts b/backend/src/common/database/repository/game-match-queue.repository.ts index 36855ef1..e6179461 100644 --- a/backend/src/common/database/repository/game-match-queue.repository.ts +++ b/backend/src/common/database/repository/game-match-queue.repository.ts @@ -1,9 +1,5 @@ import { Injectable, Logger } from '@nestjs/common'; - -interface GameMatchQueue { - socketId: string; - userId: number; -} +import { GameMatchQueue } from '../model/game-match-queue'; @Injectable() export class GameMatchQueueRepository {