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;
|
||||
try {
|
||||
uuid = await getJavaUuid(input.username);
|
||||
} catch (_) {
|
||||
throw new ActionError({
|
||||
code: 'NOT_FOUND',
|
||||
message: `Es wurde kein Minecraft Java Account mit dem Username ${input.username} gefunden`
|
||||
});
|
||||
let uuid = null;
|
||||
if (input.edition == 'java') {
|
||||
try {
|
||||
uuid = await getJavaUuid(input.username);
|
||||
} catch (_) {
|
||||
throw new ActionError({
|
||||
code: 'NOT_FOUND',
|
||||
message: `Es wurde kein Minecraft Java Account mit dem Username ${input.username} gefunden`
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// check if user is blocked
|
||||
|
||||
Reference in New Issue
Block a user