(param, callback)
| 139 | * @param callback handles the response |
| 140 | */ |
| 141 | var scanTable = function (param, callback) { |
| 142 | try { |
| 143 | dynamo.scan(param, function(err, data) { |
| 144 | if (!err) { |
| 145 | if (typeof(callback) === 'function') { |
| 146 | callback(data); |
| 147 | } |
| 148 | } else { |
| 149 | throw (err); |
| 150 | } |
| 151 | }); |
| 152 | } |
| 153 | catch (err) { |
| 154 | console.log('error in updating the item' + err); |
| 155 | } |
| 156 | }; |
| 157 | |
| 158 | module.exports = { |
| 159 | getItem: getItem, |
nothing calls this directly
no test coverage detected