Skip to content

Commit

Permalink
Merge pull request #149 from dalenguyen/dev
Browse files Browse the repository at this point in the history
Fix #147
  • Loading branch information
dalenguyen authored Oct 28, 2022
2 parents 80edd17 + 2c48b88 commit 3f4c758
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,14 @@ export const backUpDocRef = async <T>(

if (subCollections.length > 0) {
data['subCollection'] = {}
const subColOptions = {...options};
if (subColOptions?.queryCollection) {
delete subColOptions.queryCollection;
}
for (const subCol of subCollections) {
const subColData = await backupService<object>(
`${collectionPath}/${doc.id}/${subCol.id}`,
options
subColOptions
)

data['subCollection'] = {
Expand Down

0 comments on commit 3f4c758

Please sign in to comment.