Fix backup (#7134)

This commit is contained in:
Denis Bykhov
2024-11-08 17:13:18 +07:00
committed by GitHub
parent d88f361589
commit a05e2a31d9
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ export class DBCollectionHelper implements DomainHelperOperations {
}
}
export function parseDocWithProjection<T extends Doc> (doc: DBDoc, projection: Projection<T> | undefined): T {
export function parseDocWithProjection<T extends Doc> (doc: DBDoc, projection?: Projection<T> | undefined): T {
const { workspaceId, data, ...rest } = doc
for (const key in rest) {
if ((rest as any)[key] === 'NULL' || (rest as any)[key] === null) {