mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
Move model (#7185)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -411,8 +411,7 @@ export function parseDocWithProjection<T extends Doc> (
|
||||
} else {
|
||||
;(rest as any)[key] = null
|
||||
}
|
||||
}
|
||||
if (schema[key] !== undefined && schema[key].type === 'bigint') {
|
||||
} else if (schema[key] !== undefined && schema[key].type === 'bigint') {
|
||||
;(rest as any)[key] = Number.parseInt((rest as any)[key])
|
||||
}
|
||||
}
|
||||
@@ -443,8 +442,7 @@ export function parseDoc<T extends Doc> (doc: DBDoc, domain: string): T {
|
||||
} else {
|
||||
;(rest as any)[key] = null
|
||||
}
|
||||
}
|
||||
if (schema[key] !== undefined && schema[key].type === 'bigint') {
|
||||
} else if (schema[key] !== undefined && schema[key].type === 'bigint') {
|
||||
;(rest as any)[key] = Number.parseInt((rest as any)[key])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user