mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
UBERF-9114: Optimize memory usage (#7643)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -475,7 +475,7 @@ export function parseDocWithProjection<T extends Doc> (
|
||||
domain: string,
|
||||
projection?: Projection<T> | undefined
|
||||
): T {
|
||||
const { workspaceId, data, ...rest } = doc
|
||||
const { workspaceId, data, '%hash%': hash, ...rest } = doc
|
||||
const schema = getSchema(domain)
|
||||
for (const key in rest) {
|
||||
if ((rest as any)[key] === 'NULL' || (rest as any)[key] === null) {
|
||||
|
||||
Reference in New Issue
Block a user