Skip to content

Commit 6162a02

Browse files
authored
add variable for storing user data
1 parent 2b07116 commit 6162a02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/users.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ const fetchPaginatedUsers = async (query) => {
165165
const allUsers = [];
166166

167167
snapshot.forEach((doc) => {
168-
if (!doc.data().roles.archived) {
168+
const userData = doc.data()
169+
if (!userData.roles.archived) {
169170
allUsers.push({
170171
id: doc.id,
171172
...doc.data(),

0 commit comments

Comments
 (0)