@@ -252,7 +252,7 @@ type FollowStats = { numFollowing: number; numFollowers: number };
252252
253253export type GQLUserStats = Omit < PostStats , 'numPostComments' > &
254254 CommentStats &
255- FollowStats & { reputation ?: number } ;
255+ FollowStats ;
256256
257257export interface GQLReadingRank {
258258 rankThisWeek ?: number ;
@@ -679,7 +679,6 @@ export const typeDefs = /* GraphQL */ `
679679 numCommentUpvotes: Int
680680 numFollowers: Int
681681 numFollowing: Int
682- reputation: Int
683682 }
684683
685684 type ReadingRank {
@@ -1522,7 +1521,7 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
15221521 { id } : { id : string } ,
15231522 ctx : Context ,
15241523 ) : Promise < GQLUserStats | null > => {
1525- const [ postStats , commentStats , numFollowing , numFollowers , user ] =
1524+ const [ postStats , commentStats , numFollowing , numFollowers ] =
15261525 await Promise . all ( [
15271526 getAuthorPostStats ( ctx . con , id ) ,
15281527 ctx . con
@@ -1556,10 +1555,6 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
15561555 } )
15571556 . andWhere ( 'cp."feedId" = cp."userId"' )
15581557 . getCount ( ) ,
1559- ctx . con . getRepository ( User ) . findOne ( {
1560- where : { id } ,
1561- select : [ 'reputation' ] ,
1562- } ) ,
15631558 ] ) ;
15641559 return {
15651560 numPosts : postStats ?. numPosts ?? 0 ,
@@ -1569,7 +1564,6 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
15691564 numCommentUpvotes : commentStats ?. numCommentUpvotes ?? 0 ,
15701565 numFollowing,
15711566 numFollowers,
1572- reputation : user ?. reputation ,
15731567 } ;
15741568 } ,
15751569 user : async (
0 commit comments