diff --git a/back/Dockerfile b/back/Dockerfile index bd98d66a..02369b9f 100644 --- a/back/Dockerfile +++ b/back/Dockerfile @@ -6,7 +6,7 @@ RUN yarn install && yarn proto FROM thecodingmachine/nodejs:12 COPY --chown=docker:docker back . -COPY --from=builder --chown=docker:docker /var/www/messages/generated /var/www/html/src/Messages/generated +COPY --from=builder --chown=docker:docker /var/www/messages/generated /usr/src/app/src/Messages/generated RUN yarn install ENV NODE_ENV=production diff --git a/back/src/Controller/IoSocketController.ts b/back/src/Controller/IoSocketController.ts index 7e13b9d0..4e165446 100644 --- a/back/src/Controller/IoSocketController.ts +++ b/back/src/Controller/IoSocketController.ts @@ -315,6 +315,8 @@ export class IoSocketController { case Direction.RIGHT: direction = 'right'; break; + default: + throw new Error("Unexpected direction"); } const Client = (socket as ExSocketInterface);