Ivan Asmer 5 tahun lalu
induk
melakukan
fd1c457cd7
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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}`)