Skip to content

Commit

Permalink
fix: ignore queryCollection option when exporting sub-collection data
Browse files Browse the repository at this point in the history
  • Loading branch information
leoleelf committed Oct 28, 2022
1 parent 1c1a967 commit ee758aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ export const backUpDocRef = async <T>(

if (subCollections.length > 0) {
data['subCollection'] = {}
const {queryCollection, ...subColOptions} = options;
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 ee758aa

Please sign in to comment.