Skip to content

Commit

Permalink
mc-oauth url moved to dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 29, 2024
1 parent 08932c0 commit 309a971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/minecraft/minecraft.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class MinecraftService {
}

async getByCode(code: string): Promise<{ nickname: string, UUID: string }> {
const response = await axios.get(`https://mc-oauth.andcool.ru/code/${code}`, { validateStatus: () => true });
const response = await axios.get(`${process.env.MC_OAUTH_API}/${code}`, { validateStatus: () => true });
if (response.status !== 200)
throw new LocaleException(responses.CODE_NOT_FOUND, 404);

Expand Down

0 comments on commit 309a971

Please sign in to comment.