Browse Source

-cache of proxy on Savable

Ivan Asmer 4 years ago
parent
commit
ca3bb640cc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -321,7 +321,7 @@ const mm = db => {
 
 
         static get m(){ 
-            return Savable._m = (Savable._m || (new Proxy({}, {
+            return Savable._m = (new Proxy({}, {
                 get(obj, _class){
                     if (_class in obj){
                         return obj[_class]
@@ -369,7 +369,7 @@ const mm = db => {
 
                 set(obj, propName, value){
                 }
-            })))
+            }))
         }
 
         static get relations(){