uberf-8512: fix acc memory leak (#7002)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev 2024-10-21 11:00:14 +04:00 committed by GitHub
parent 0b1af0da90
commit 11b6aa4820
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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> {