File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,13 @@ const getUsers = async (req, res) => {
73
73
if ( qualifiers ?. filterBy ) {
74
74
const allPRs = await getFilteredPRsOrIssues ( qualifiers ) ;
75
75
76
- const filteredUsernames = getUsernamesFromPRs ( allPRs ) ;
76
+ const usernames = getUsernamesFromPRs ( allPRs ) ;
77
77
78
- const { filterdUsersWithDetails } = await userQuery . fetchUsers ( filteredUsernames ) ;
78
+ const { users } = await userQuery . fetchUsers ( usernames ) ;
79
79
80
80
return res . json ( {
81
81
message : "Users returned successfully!" ,
82
- users : filterdUsersWithDetails ,
82
+ users,
83
83
} ) ;
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ const fetchPaginatedUsers = async (query) => {
182
182
const fetchUsers = async ( usernames = [ ] ) => {
183
183
try {
184
184
const dbQuery = userModel ;
185
- const filterdUsersWithDetails = [ ] ;
185
+ const users = [ ] ;
186
186
187
187
const groups = [ ] ;
188
188
for ( let i = 0 ; i < usernames . length ; i += BATCH_SIZE_IN_CLAUSE ) {
@@ -198,7 +198,7 @@ const fetchUsers = async (usernames = []) => {
198
198
199
199
snapshots . forEach ( ( snapshot ) => {
200
200
snapshot . forEach ( ( doc ) => {
201
- filterdUsersWithDetails . push ( {
201
+ users . push ( {
202
202
id : doc . id ,
203
203
...doc . data ( ) ,
204
204
phone : undefined ,
@@ -210,7 +210,7 @@ const fetchUsers = async (usernames = []) => {
210
210
} ) ;
211
211
212
212
return {
213
- filterdUsersWithDetails ,
213
+ users ,
214
214
} ;
215
215
} catch ( err ) {
216
216
logger . error ( "Error retrieving user data" , err ) ;
You can’t perform that action at this time.
0 commit comments