mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 06:31:27 +08:00
lint fixes
This commit is contained in:
@@ -107,7 +107,6 @@ const getUsersByQuery = async ({user, loaders: {Actions}}, {ids, limit, cursor,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the count of users based on the passed in query.
|
||||
* @param {Object} context graph context
|
||||
@@ -129,10 +128,9 @@ const getCountByQuery = async ({loaders: {Actions}}, {action_type}) => {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
return UserModel
|
||||
.find(query)
|
||||
.count();
|
||||
.find(query)
|
||||
.count();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -50,7 +50,6 @@ const RootQuery = {
|
||||
return Comments.getCountByQuery(query);
|
||||
},
|
||||
|
||||
|
||||
async userCount(_, {query}, {user, loaders: {Users}}) {
|
||||
if (user == null || !user.can(SEARCH_OTHER_USERS)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user