Closed DeraldoSilva closed 5 years ago
Hi
Kindly update following in index.js
function subtractOffset(docs, next) { if (docs && !.isArray(docs)) docs = [docs.constructor.name === "model" ? docs : this]; ++++ if (docs.length == 0) next(); ++++ .each(docs, (result, index) => { fixOffset(result, false, () => { if (index + 1 === docs.length) next(); }); }); }
Should be solved in https://github.com/rodrigogs/mongoose-timezone/releases/tag/v1.2.0
that's the versions I am using. "mongoose": "^4.13.8", "mongoose-timezone": "^1.1.0",
Agenda is my exported Model.