mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
uberf-8512: fix acc memory leak (#7002)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
0b1af0da90
commit
11b6aa4820
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user