Working comment history, styling in progress

This commit is contained in:
Belén Curcio
2018-09-14 12:37:25 -03:00
parent ced45a914c
commit f391d7b7ad
4 changed files with 40 additions and 3 deletions
@@ -2,7 +2,7 @@ import { GQLUserTypeResolver } from "talk-server/graph/tenant/schema/__generated
import { User } from "talk-server/models/User";
const User: GQLUserTypeResolver<User> = {
comments: (asset, input, ctx) =>
comments: (_, input, ctx) =>
ctx.user ? ctx.loaders.Comments.forUser(ctx.user.id, input) : [],
};