@unchainedshop/core-users 4.8.15 → 4.8.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -202,14 +202,9 @@ export const configureUsersModule = async (moduleInput) => {
202
202
  guest: true,
203
203
  deleted: null,
204
204
  created: { $lte: before },
205
- $and: [
206
- {
207
- $or: [
208
- { 'lastLogin.timestamp': { $exists: false } },
209
- { 'lastLogin.timestamp': { $lte: before } },
210
- ],
211
- },
212
- { $or: [{ updated: { $exists: false } }, { updated: { $lte: before } }] },
205
+ $or: [
206
+ { 'lastLogin.timestamp': { $exists: false } },
207
+ { 'lastLogin.timestamp': { $lte: before } },
213
208
  ],
214
209
  }, { projection: { _id: 1 } }).toArray();
215
210
  return users.map((u) => u._id);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-users",
3
3
  "description": "User management module for the Unchained Engine with authentication support",
4
- "version": "4.8.15",
4
+ "version": "4.8.17",
5
5
  "main": "lib/users-index.js",
6
6
  "types": "lib/users-index.d.ts",
7
7
  "type": "module",