Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Nguyen authored Mar 27, 2020
1 parent e2bc7fd commit 8868a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ fs.readFile(fileName, 'utf8', function(err, data){
dataArray = JSON.parse(data);
}

udpateCollection(dataArray);
updateCollection(dataArray);

})

async function udpateCollection(dataArray){
async function updateCollection(dataArray){
for(const index in dataArray){
const collectionName = index;
for(const doc in dataArray[index]){
Expand Down

0 comments on commit 8868a8c

Please sign in to comment.