coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Prevent error in lack of migrations #191

Open jonasof opened 7 years ago

jonasof commented 7 years ago

If there is no migrations, the method migrateOne throw one error. This happen because the code don't stop after "callback()", so added "return" also;