Ivan Asmer преди 5 години
родител
ревизия
fd1c457cd7
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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}`)