KAZOO-3112: Adding pvt_type in attachment query so docs can be flushed