gaspan619

ubah data prod untuk publish location & zonation

Jul 2nd, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //done all
  2. db.locations.updateMany({}, {$set: {publish_destination: 0}})
  3. db.locations.updateMany({}, {$set: {last_update: new ISODate("2019-06-02")}})
  4. db.locations.updateMany({}, {$set: {image_booklet: []}})
  5.  
  6. db.locations.updateMany({}, {$set: {"rental_zone.first_zone.selected":1}})
  7. db.locations.updateMany({}, {$set: {"rental_zone.second_zone.selected":0}})
  8. db.locations.updateMany({}, {$set: {"rental_zone.third_zone.selected":0}})
Advertisement
Add Comment
Please, Sign In to add comment