Skip to content

Commit

Permalink
fix: show full list of sites in admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Mar 29, 2023
1 parent f8b914f commit a3a46c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/storages/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 +422,15 @@ class MongodbStorage {
async findOwnerSites (owner) {
const filter = { 'owner.type': owner.type, 'owner.id': owner.id }
if (owner.department) filter['owner.department'] = owner.department
const sites = await this.db.collection('sites').find(filter).toArray()
const sites = await this.db.collection('sites').find(filter).limit(10000).toArray()
return {
count: sites.length,
results: sites
}
}

async findAllSites (owner) {
const sites = await this.db.collection('sites').find().toArray()
const sites = await this.db.collection('sites').find().limit(10000).toArray()
return {
count: sites.length,
results: sites
Expand Down

0 comments on commit a3a46c9

Please sign in to comment.