You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fetches users who are not in the Discord server.
1089
+
* @returns {Promise<FirebaseFirestore.QuerySnapshot>} - A promise that resolves to a Firestore QuerySnapshot containing the users matching the criteria.
1090
+
* @throws {Error} - Throws an error if the database query fails.
1091
+
*/
1092
+
constfetchUsersNotInDiscordServer=async()=>{
1093
+
try{
1094
+
constusersNotInDiscordServer=awaituserModel
1095
+
.where("roles.archived","==",true)
1096
+
.where("roles.in_discord","==",false)
1097
+
.get();
1098
+
returnusersNotInDiscordServer;
1099
+
}catch(error){
1100
+
logger.error(`Error in getting users who are not in discord server: ${error}`);
0 commit comments