Commits

Liam Staskawicz committed cd13f59

* small tweaks

Comments (0)

Files changed (1)

fan/Collection.fan

     Bson.writeCStr(b.out, fullName) // full name
     opts := (upsert == true) ? 1 : 0
     if(multi == true)
-      opts += opts.and(1.shiftl(1))
+      opts = opts.or(1.shiftl(1))
     b.writeI4(opts)
     Bson.write(b.out, query)
     Bson.write(b.out, doc)
     return doc
   }
   
-  Void remove(Map query, Bool safe := false)
+  Void remove(Str:Obj? query := [:], Bool safe := false)
   {
     b := Buf() { endian = Endian.little }
     b.writeI4(0) // reserved