Skip to content

Commit 3f4c758

Browse files
authored
Merge pull request #149 from dalenguyen/dev
Fix #147
2 parents 80edd17 + 2c48b88 commit 3f4c758

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/export.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,14 @@ export const backUpDocRef = async <T>(
142142

143143
if (subCollections.length > 0) {
144144
data['subCollection'] = {}
145+
const subColOptions = {...options};
146+
if (subColOptions?.queryCollection) {
147+
delete subColOptions.queryCollection;
148+
}
145149
for (const subCol of subCollections) {
146150
const subColData = await backupService<object>(
147151
`${collectionPath}/${doc.id}/${subCol.id}`,
148-
options
152+
subColOptions
149153
)
150154

151155
data['subCollection'] = {

0 commit comments

Comments
 (0)