Skip to content

Commit

Permalink
changed TZ in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Jan 1, 2025
1 parent 8c5d121 commit fc6df9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
dockerfile: Dockerfile
networks:
- nginx
environment:
- TZ=Europe/Moscow
restart: always
command: npm run start

Expand Down
10 changes: 4 additions & 6 deletions src/minecraft/minecraft.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fc6df9c

Please sign in to comment.