Fix fbByFBSlug query
This commit is contained in:
1 parent
b3d404761c
commit
76fbbd049d
1 file changed
+2
-2
@@ -11,7 +11,7 @@ export const fbByFbId = async (parent, { fbId }, ctx, info) => {
|
||||
|
||||
export const fbByFbSlug = async (parent, { fbSlug }, ctx, info) => {
|
||||
logger.info(`fbByFbSlug: ${fbSlug}`)
|
||||
let FB = await ctx.db.query.financialBeingses({where: {slug: fbSlug}}, FB_FRAGMENT)
|
||||
let FB = await ctx.db.query.financialBeingses({where: {slug: fbSlug}, first:1}, FB_FRAGMENT)
|
||||
logger.info(`fbByFbSlug response: ${JSON.stringify(await FB)}`)
|
||||
return FB
|
||||
return FB[0]
|
||||
}
|
||||
Reference in new issue
Block a user