Fix Team_FB Fragment
This commit is contained in:
1 parent
edfa34ccbd
commit
fbd3903c8b
2 files changed
+5
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { logger, AuthenticationError } from '../../../logger'
|
||||
import { logger, AuthenticationError, DatabaseError } from '../../../logger'
|
||||
|
||||
import TEAMS_CONNECTIONS_FRAGMENT from '../../fragments/TeamsConnectionsFragment'
|
||||
import TEAMS_FRAGMENT from '../../fragments/TeamsFragment'
|
||||
@@ -44,10 +44,9 @@ export const teamsByRole = async (parent, args, ctx, info) => {
|
||||
} catch (err) {
|
||||
logger.debug('teamsByRole error: ')
|
||||
logger.debug(err)
|
||||
const errors = res.graphQLErrors.map((error) => {
|
||||
return error.message
|
||||
const errors = err.graphQLErrors.map((error) => {
|
||||
throw new DatabaseError(error.message)
|
||||
})
|
||||
return errors
|
||||
}
|
||||
logger.info('teamsByRole teamAdmin: ', teamAdmin)
|
||||
return teamAdmin
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { logger } from '../../../logger'
|
||||
|
||||
import TEAM_FB_FRAGMENT from '../../fragments/TeamFBFragment'
|
||||
|
||||
export const fbByTeamMember = async (parent, args, ctx, info) => {
|
||||
logger.info('fbByTeamMember: ', args, ctx.request, ctx.request.res.req.user)
|
||||
const authId = ctx.request.headers.userid
|
||||
|
||||
Reference in new issue
Block a user