Not checking for error on upsert.js callback
itaibs opened this issue · comments
Hi!
I keep getting "TypeError: Cannot read property 'insertedId' of undefined" errors. After a bit of digging I realized this is becuase there's no existence check for err or ret in line 80 on upsert.js.
I'm guessing this isn't intended?