Adapting tipos

This commit is contained in:
Unknown committed 2019-02-19 03:24:57 +01:00
1 parent dd3c259887
commit fbde934d78
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}