mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 10:18:09 +09:00
14 lines
138 B
JavaScript
14 lines
138 B
JavaScript
db.posts.update({
|
|
$or: [{
|
|
mediaIds: null
|
|
}, {
|
|
mediaIds: {
|
|
$exist: false
|
|
}
|
|
}]
|
|
}, {
|
|
$set: {
|
|
mediaIds: []
|
|
}
|
|
}, false, true);
|