tekstflyt/writer.rb
# Increment flow count and return the new flow count
Increment flow count and return the new flow count
Increment flow count and return the new flow count
def inc_flow_count(writer)
        @writer_db.update({_id: writer._id}, {'$inc' => {fc: 1}})
        @writer_db.find_one(query: {_id: writer._id})['fc']
    end
def inc_flow_count ( writer ) @writer_db . update ( { _id : writer . _id } , { '$inc' => { fc : 1 } } ) @writer_db . find_one ( query : { _id : writer . _id } ) [ 'fc' ] end
Increment flow count and return the new flow count
Increment flow count and return the new flow count
#ret = @writer_db.find_and_modify(query: {_id: writer._id}, update: {'$inc' => {fc: 1}}, new: true)
writer
<not_specific>