debug
This commit is contained in:
@@ -69,10 +69,35 @@ db.video.find({
|
||||
}
|
||||
})
|
||||
|
||||
db.video.find({
|
||||
"v_play_url.douban": { $exists: true }
|
||||
}).count()
|
||||
// 删除某个资源线路的数据
|
||||
db.video.updateMany(
|
||||
{},
|
||||
{ $unset: { "v_play_url.douban": "" } }
|
||||
)
|
||||
|
||||
// 删除某个资源线路的数据 30天内
|
||||
db.video.find({
|
||||
created_at: {
|
||||
$gte: new Date(Date.now() - 30*24*60*60*1000)
|
||||
},
|
||||
"v_play_url.youzhi": { $exists: true }
|
||||
}).count()
|
||||
|
||||
db.video.updateMany(
|
||||
{
|
||||
created_at: {
|
||||
$gte: new Date(Date.now() - 30*24*60*60*1000)
|
||||
},
|
||||
"v_play_url.youzhi": { $exists: true }
|
||||
},
|
||||
{
|
||||
$unset: { "v_play_url.youzhi": "" }
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
````
|
||||
Reference in New Issue
Block a user