MCPcopy Create free account
hub / github.com/Comcast/Speed-testJS / updateItem

Function updateItem

modules/dynamo.js:119–134  ·  view source on GitHub ↗
(param, callback)

Source from the content-addressed store, hash-verified

117 * @param callback handles the response
118 */
119var 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

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected