diff --git a/server/account/src/collections/mongo.ts b/server/account/src/collections/mongo.ts index a3ace061d1..e1c2e490d9 100644 --- a/server/account/src/collections/mongo.ts +++ b/server/account/src/collections/mongo.ts @@ -107,7 +107,7 @@ export class MongoDbCollection> implements DbColle cursor.limit(limit) } - return await this.collection.find(query as Filter).toArray() + return await cursor.toArray() } async findOne (query: Query): Promise {