sunset.js revision 756e9b7d2193d27f37121f3ecb1f4ee53b710859
/*global input, objectID */
(function () {
// Create a change patch
var patch = [{ "operation" : "replace", "field" : "/active", "value" : false },{ "operation" : "replace", "field" : "/accountStatus", "value" : "inactive" }];
// Perform update via patch so that we can do so regardless of revision change
// NOTE: If we were to use update and the object had been modified during script execution
// update would fail due to conflicting revision numbers
// Update method:
// input['active'] = false;
// openidm.update(objectID, input['_rev'], input);
return true; // return true to indicate successful completion
}());