Move model (#7185)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-11-18 17:44:09 +05:00
committed by GitHub
parent 017353ece3
commit 5353a06b07
18 changed files with 206 additions and 145 deletions
+2 -4
View File
@@ -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])
}
}