From fc6df9cf9595ed2e3728a5e90cbbb32b9953c5e0 Mon Sep 17 00:00:00 2001 From: Andcool-Systems Date: Wed, 1 Jan 2025 23:32:03 +0300 Subject: [PATCH] changed TZ in docker container --- docker-compose.yaml | 2 ++ src/minecraft/minecraft.service.ts | 10 ++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index a5bf810..7198dc9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,6 +8,8 @@ services: dockerfile: Dockerfile networks: - nginx + environment: + - TZ=Europe/Moscow restart: always command: npm run start diff --git a/src/minecraft/minecraft.service.ts b/src/minecraft/minecraft.service.ts index d2b04b8..f0de740 100644 --- a/src/minecraft/minecraft.service.ts +++ b/src/minecraft/minecraft.service.ts @@ -19,12 +19,10 @@ export class MinecraftService { { validateStatus: () => true } ); if (response_skin.status !== 200) { - throw new LocaleException( - response_skin.status === 404 ? - responses.PROFILE_NOT_FOUND : - responses.MOJANG_ERROR, - response_skin.status - ); + if (response_skin.status === 204) + throw new LocaleException(responses.PROFILE_NOT_FOUND, 404); + + throw new LocaleException(responses.MOJANG_ERROR, response_skin.status); } return response_skin.data; }