(param, callback)
| 117 | * @param callback handles the response |
| 118 | */ |
| 119 | var updateItem = function (param, callback) { |
| 120 | try { |
| 121 | dynamo.updateItem(param, function(err, data) { |
| 122 | if (!err) { |
| 123 | if (typeof(callback) === 'function') { |
| 124 | callback(data); |
| 125 | } |
| 126 | } else { |
| 127 | throw (err); |
| 128 | } |
| 129 | }); |
| 130 | } |
| 131 | catch (err) { |
| 132 | console.log('error in updating the item' + err); |
| 133 | } |
| 134 | }; |
| 135 | |
| 136 | /** |
| 137 | * Scan returns one or more items and item attributes by accessing every item in a table |
nothing calls this directly
no test coverage detected