Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bortoz committed Dec 7, 2024
1 parent 179fa15 commit 7b37e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/firebase/utils/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function importCollection<T extends { id: string }>(

for (let i = 0; i < docsToImport.length; i += 400) {
const batch = db.batch();
for (const record of data.slice(i, i + 400)) {
for (const record of docsToImport.slice(i, i + 400)) {
const ref = db.doc(`${collection}/${record.id}`).withConverter(converter);
if (options.force) {
batch.set(ref, record);
Expand Down

0 comments on commit 7b37e1b

Please sign in to comment.