multi-db-orm 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- const { model } = require("mongoose");
2
1
  const { MultiDbORM } = require("./multidb");
3
2
 
4
3
  function removeUndefined(obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-db-orm",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "CRUD , Backup , Restore and Migration library for multiple databases",
5
5
  "main": "index.js",
6
6
  "dependencies": {
package/sync.js CHANGED
@@ -1,5 +1,9 @@
1
- const bkp = require('./backup')
2
- const rst = require('./restore')
1
+ try {
2
+ var bkp = require('./backup')
3
+ var rst = require('./restore')
4
+ } catch (e) {
5
+ console.log('Warning : Multi region sync not enabled.' )
6
+ }
3
7
 
4
8
  class Sync {
5
9