...
 
Commits (2)
......@@ -10,7 +10,9 @@ const GET_TEAMS_FOR_ARTICLE = gql`
id
members {
id
username
user {
username
}
}
name
role
......
......@@ -60,6 +60,10 @@ const resolvers = {
.delete()
.whereIn('teamId', relatedTeamIds)
await Team.query()
.delete()
.whereIn('id', relatedTeamIds)
return id
},
async handleInvitation(_, { action, articleId, currentUserId }, context) {
......@@ -270,7 +274,6 @@ const resolvers = {
async globalTeams() {
let teams
try {
// teams = await Team.findByField('global', true)
teams = await Team.query()
.where('global', true)
.eager('[members.[user, alias]]')
......