Adapting tipos
This commit is contained in:
1 parent
dd3c259887
commit
fbde934d78
2 files changed
+2
-2
No files matched your search
@@ -40,7 +40,7 @@ const resolve = (parent,
|
||||
headers: { authorization },
|
||||
}).then(
|
||||
(result) => {
|
||||
if (!result.data.data.teamsByRole.some(team => team.id === participantId)) {
|
||||
if (!result.data.data.teams_TeamsByRole.some(team => team.id === participantId)) {
|
||||
rej(new WrongArgumentsError('You are not eligible to register this team'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ const resolve = (parent,
|
||||
headers: { authorization },
|
||||
}).then(
|
||||
(result) => {
|
||||
if (!result.data.data.teamsByRole.some(team => team.id === participantId)) {
|
||||
if (!result.data.data.teams_TeamsByRole.some(team => team.id === participantId)) {
|
||||
rej(new WrongArgumentsError('You are not eligible to register this team'));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user