Created
December 5, 2023 20:39
-
-
Save jcnevado/ab95e7871812ea637b2cdfb727844d30 to your computer and use it in GitHub Desktop.
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
db.getCollection("tg_vod").find({ | |
nid: 138313 | |
}).forEach(function(doc) { | |
if (doc.programaTemporada.length > 0) { | |
doc.programaTemporada[0].tid = doc.programaTemporada[0].tid.toLowerCase().replace(' ', '-'); | |
} | |
db.tg_vod.updateOne({_id: doc._id}, {$set: { | |
"programaTemporada.0": doc.programaTemporada[0] | |
}}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment