Closed louisevdb84 closed 6 years ago
you should add a migrate script at package.json. i think it missed.
also you don't need id field at that arrays. but other things is looks ok, just must be updated for your particular case...
and please use same structure as i have - with bin folder where i store all import things, just to avoid my confusing...
I added directory import-db-files which contains the import files. Cannot test it, need to complete the migrate section first. So I have no idea if this will work and whether I included all the correct files for this.
I also added try catch block for Raven in model - reservation. As per previous comment, I have not yet tested the email functionality, because a new reservation needs to be created and struggle to do that using db.json as datasource. Will test as soon as MongoDb is up and running.