File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
backend/collaboration/src Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
- import { getCollabRoomService } from '@/service/get/collab-get-service' ;
2
- import { IGetCollabRoomPayload } from '@/service/get/types' ;
3
- import { Request , Response } from 'express' ;
1
+ import type { Request , Response } from 'express' ;
4
2
import { StatusCodes } from 'http-status-codes' ;
5
3
4
+ import { getCollabRoomService } from '@/service/get/collab-get-service' ;
5
+ import type { IGetCollabRoomPayload } from '@/service/get/types' ;
6
+
6
7
export async function getCollabRoom ( req : Request , res : Response ) {
7
8
const { userid1, userid2, questionid } = req . query ;
8
9
const payload : IGetCollabRoomPayload = {
Original file line number Diff line number Diff line change
1
+ import { exit } from 'process' ;
2
+
1
3
import cors from 'cors' ;
2
4
import express , { json } from 'express' ;
3
5
import { StatusCodes } from 'http-status-codes' ;
4
6
import pino from 'pino-http' ;
7
+
5
8
import { UI_HOST } from '@/config' ;
6
- import roomRoutes from '@/routes/room' ;
7
- import { logger } from '@/lib/utils' ;
8
9
import { config , db } from '@/lib/db' ;
9
- import { exit } from 'process' ;
10
+ import { logger } from '@/lib/utils' ;
11
+ import roomRoutes from '@/routes/room' ;
10
12
11
13
const app = express ( ) ;
12
14
app . use ( pino ( ) ) ;
Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ services:
218
218
environment :
219
219
- VITE_USER_SERVICE=http://${USER_SERVICE_NAME}:${USER_EXPRESS_PORT}
220
220
- VITE_QUESTION_SERVICE=http://${QUESTION_SERVICE_NAME}:${QUESTION_EXPRESS_PORT}
221
+ - VITE_COLLAB_SERVICE=http://${COLLAB_SERVICE_NAME}:${COLLAB_EXPRESS_PORT}
221
222
- VITE_MATCHING_SERVICE=http://${MATCHING_SERVICE_NAME}:${MATCHING_EXPRESS_PORT}
222
223
- FRONTEND_PORT=${FRONTEND_PORT}
223
224
depends_on :
@@ -230,6 +231,9 @@ services:
230
231
collab-service :
231
232
condition : service_healthy
232
233
restart : true
234
+ matching-service :
235
+ condition : service_healthy
236
+ restart : true
233
237
networks :
234
238
- user-api-network
235
239
- question-api-network
You can’t perform that action at this time.
0 commit comments