only check uuid if account is java
All checks were successful
deploy / build-and-deploy (push) Successful in 27s
All checks were successful
deploy / build-and-deploy (push) Successful in 27s
This commit is contained in:
@@ -50,14 +50,16 @@ export const signup = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let uuid;
|
let uuid = null;
|
||||||
try {
|
if (input.edition == 'java') {
|
||||||
uuid = await getJavaUuid(input.username);
|
try {
|
||||||
} catch (_) {
|
uuid = await getJavaUuid(input.username);
|
||||||
throw new ActionError({
|
} catch (_) {
|
||||||
code: 'NOT_FOUND',
|
throw new ActionError({
|
||||||
message: `Es wurde kein Minecraft Java Account mit dem Username ${input.username} gefunden`
|
code: 'NOT_FOUND',
|
||||||
});
|
message: `Es wurde kein Minecraft Java Account mit dem Username ${input.username} gefunden`
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if user is blocked
|
// check if user is blocked
|
||||||
|
|||||||
Reference in New Issue
Block a user