These are chat archives for Automattic/mongoose

17th
Dec 2018
Paul "Joey" Clark
@joeytwiddle
Dec 17 2018 07:48
@ledlamp If you don’t find a better way, you could disable debug before you save the binary data, and enable it again afterwards!
@ERENKYI How about .update() instead of .findOneANdUpdate()
Your query would need to be something like: accountId: {$in: participantIds}
(In mongoose, update needs option {multi: 1} but I think perhas mongoose does that for you already.)
Paul "Joey" Clark
@joeytwiddle
Dec 17 2018 07:56
@ras24 If I understand what you are asking, then you just need an end date (with +12 minutes):
createdAt: { $gte: startDate, $lt: endDate }