mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-29 19:29:36 +02:00
UBERF-8603: Fix memory leak (#7229)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -803,11 +803,12 @@ abstract class PostgresAdapterBase implements DbAdapter {
|
||||
private buildQuery<T extends Doc>(
|
||||
_class: Ref<Class<T>>,
|
||||
baseDomain: string,
|
||||
query: DocumentQuery<T>,
|
||||
_query: DocumentQuery<T>,
|
||||
joins: JoinProps[],
|
||||
options?: ServerFindOptions<T>
|
||||
): string {
|
||||
const res: string[] = []
|
||||
const query = { ..._query }
|
||||
res.push(`${baseDomain}."workspaceId" = '${this.workspaceId.name}'`)
|
||||
if (options?.skipClass !== true) {
|
||||
query._class = this.fillClass(_class, query) as any
|
||||
|
||||
Reference in New Issue
Block a user