Ivan Asmer 5 лет назад
Родитель
Сommit
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}`)