Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…restore into dev
  • Loading branch information
dalenguyen committed Oct 28, 2022
2 parents 1c1a967 + 86c6a04 commit 2c48b88
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 2c48b88

Please sign in to comment.