diff --git a/src/cardset/infrastructure/grpc/cardset.grpc-controller.ts b/src/cardset/infrastructure/grpc/cardset.grpc-controller.ts index 039825a..3fa39dd 100644 --- a/src/cardset/infrastructure/grpc/cardset.grpc-controller.ts +++ b/src/cardset/infrastructure/grpc/cardset.grpc-controller.ts @@ -17,8 +17,8 @@ export class CardsetGrpcController { data: IsCardSetViewableRequest, ): Promise { const viewable = await this.cardsetUseCase.isCardSetViewable( - data.cardSetId, - data.userId, + Number(data.cardSetId), + Number(data.userId), ); return { viewable }; } @@ -28,8 +28,8 @@ export class CardsetGrpcController { data: GetCardSetsByIdsRequest, ): Promise { const cardsets = await this.cardsetUseCase.getCardSetsByIds( - data.cardSetIds, - data.userId, + data.cardSetIds.map(Number), + Number(data.userId), ); return { cardSets: cardsets.map((c) => ({ diff --git a/src/collaboration/infrastructure/gateway/collaboration.gateway.ts b/src/collaboration/infrastructure/gateway/collaboration.gateway.ts index 7668613..eb33d1e 100644 --- a/src/collaboration/infrastructure/gateway/collaboration.gateway.ts +++ b/src/collaboration/infrastructure/gateway/collaboration.gateway.ts @@ -19,7 +19,7 @@ import { CollaborationUseCase } from '../../application/collaboration.use-case'; @UseGuards(WsAuthGuard) @WebSocketGateway({ cors: { origin: '*' }, - namespace: '/v1/card-sets/ws', + path: '/v1/card-sets/ws', pingTimeout: 60000, pingInterval: 25000, })