mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 16:53:09 +02:00
13 lines
139 B
JavaScript
13 lines
139 B
JavaScript
db.posts.update({
|
|
$or: [{
|
|
mediaIds: null
|
|
}, {
|
|
mediaIds: {
|
|
$exists: false
|
|
}
|
|
}]
|
|
}, {
|
|
$set: {
|
|
mediaIds: []
|
|
}
|
|
}, false, true);
|