Skip to content

Commit

Permalink
uberf-8512: fix acc memory leak (#7002)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Zinoviev <[email protected]>
  • Loading branch information
lexiv0re authored and haiodo committed Oct 21, 2024
1 parent 5f2c0eb commit 754daa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/account/src/collections/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class MongoDbCollection<T extends Record<string, any>> implements DbColle
cursor.limit(limit)
}

return await this.collection.find<T>(query as Filter<T>).toArray()
return await cursor.toArray()
}

async findOne (query: Query<T>): Promise<T | null> {
Expand Down

0 comments on commit 754daa2

Please sign in to comment.