ChickenKyiv / loopback-tutor-intern-10

GNU General Public License v3.0
0 stars 2 forks source link

Import not working after removing attributes and adding tables directly into create function #17

Closed louisevdb84 closed 6 years ago

louisevdb84 commented 6 years ago

{ Campground: undefined } Error: Cannot migrate models not attached to this datasource: Campground

atherdon commented 6 years ago

try to debug helper method create but keep in mind that for some reasons it can be broken too

atherdon commented 6 years ago

i checked the create method. it looks like less advanced version, but it should work fine, by my opinion

louisevdb84 commented 6 years ago

will have a look at it tomorrow.

atherdon commented 6 years ago

i think you don't need to use a long version of db include. i mean if you use mongo connector - you can pass a long link to database. it have all important things like pass/username... i assume error is on including part. it will be easy if you comment some things and go step by step and check where it' generate an issue

louisevdb84 commented 6 years ago

The import statement is now working well. Was just some typing errors. It breaks now when I try to send an email as soon as a new reservation is made.