Ivan Asmer hace 4 años
padre
commit
fd1c457cd7
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      index.js

+ 1 - 0
index.js

@@ -326,6 +326,7 @@ const mm = db => {
                     }
 
                     const applyCursorCalls = (cursor, calls) =>{
+                        if (!calls) return cursor;
                         for (let [method, params] of Object.entries(calls)){
                             if (typeof cursor[method] !== "function"){
                                 throw new SyntaxError(`Wrong cursor method ${method}`)