Compare commits

..

1 Commits

Author SHA1 Message Date
18319b06b0 fix admin dashboard team edit
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 29s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 13s
2025-06-10 11:27:22 +02:00
2 changed files with 2 additions and 12 deletions

View File

@ -66,9 +66,8 @@ export const signup = {
});
}
let memberUuid;
try {
memberUuid = await getJavaUuid(input.teamMember);
await getJavaUuid(input.teamMember);
} catch (_) {
throw new ActionError({
code: 'NOT_FOUND',
@ -86,15 +85,6 @@ export const signup = {
});
}
}
if (memberUuid) {
const blockedUser = await db.getBlockedUserByUuid({ uuid: memberUuid });
if (blockedUser) {
throw new ActionError({
code: 'FORBIDDEN',
message: 'Dein Mitspieler ist für die Registrierung gesperrt. Bitte suche dir einen anderen Mitspieler'
});
}
}
if (!teamDraft) {
// check if a team with the same name already exists