only check uuid if account is java
All checks were successful
deploy / build-and-deploy (push) Successful in 27s

This commit is contained in:
2025-12-03 17:05:04 +01:00
parent d4693c0d26
commit 1d6444350d

View File

@@ -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