We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e38daa commit 2b07116Copy full SHA for 2b07116
models/users.js
@@ -165,14 +165,16 @@ const fetchPaginatedUsers = async (query) => {
165
const allUsers = [];
166
167
snapshot.forEach((doc) => {
168
- allUsers.push({
169
- id: doc.id,
170
- ...doc.data(),
171
- phone: undefined,
172
- email: undefined,
173
- tokens: undefined,
174
- chaincode: undefined,
175
- });
+ if (!doc.data().roles.archived) {
+ allUsers.push({
+ id: doc.id,
+ ...doc.data(),
+ phone: undefined,
+ email: undefined,
+ tokens: undefined,
+ chaincode: undefined,
176
+ });
177
+ }
178
});
179
return {
180
allUsers,
0 commit comments