From 11b6aa4820d51a8072db4cefd618075794378fce Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev <alexey.zinoviev@xored.com> Date: Mon, 21 Oct 2024 11:00:14 +0400 Subject: [PATCH] uberf-8512: fix acc memory leak (#7002) Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com> --- server/account/src/collections/mongo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<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> {