[01:04:57] <kkoomen> Hi. I'm using mongoose.aggregate() and have an issue that I don't know how to fix: I have a field type "[Array]" (so it's 2-dimensional). An example item would be: { targetAreas: [['US'], ['AU']] }. I have a webpage with a campaign, at the bottom we display "related" campaigns, so I need to do something like this for the related campaigns: const related = await campaigns.aggregate([{ $match: {
[01:04:59] <kkoomen> targetAreas: { $in: currentCampaign.targetAreas } } }]) but this doesn't work. How do I do this?
[12:23:25] <dch> got a standalone mongodb4.0 that refuses to start, db repair is clean & returns 0
[12:23:32] <dch> but each time mongodb starts it says 'old lock file: /var/db/mongodb/mongod.lock. probably means unclean shutdown, but there are no journal files to recover.'
[12:24:02] <kali> dch: check that the lock file does not belong to root
[12:24:21] <kali> dch: instead of the user supposed to run mongod
[12:26:15] <dch> kali, god tip, I'm running repair as root, then chowning, and right now running mongod as root too still.