Created
January 6, 2022 16:51
-
-
Save Jlaird/094a321eccea07aaab9a9ace70587923 to your computer and use it in GitHub Desktop.
Check for module enabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dbs = db.runCommand('listDatabases').databases.filter(({ name }) => name.contains('_website')).map(({ name }) => name) | |
dbs.forEach((name) => { | |
var siteSettings = db.getSiblingDB(name).getCollection('SiteSettings').find({"modules.blueconic":true}) | |
siteSettings.forEach((doc) => { | |
print(name); | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment