sunset.js revision 1b9b8df13d4ba276b7291563ecad935d25bebda9
1N/Alogger.debug("Performing Sunset Task on {} ({})", input.email, objectID);
1N/A
1N/A// Create a change patch
1N/Avar patch = [{ "replace" : "active", "value" : false }];
1N/A// Perform update via patch so that we can do so regardless of revision change
1N/A// NOTE: If we were to use update and the object had been modified during script execution
1N/A// update would fail due to conflicting revision numbers
1N/Aopenidm.patch(objectID, null, patch);
1N/A
1N/A// Update method:
1N/A// input['active'] = false;
1N/A// openidm.update(objectID, input['_rev'], input);
1N/A
1N/Atrue; // return true to indicate successful completion
1N/A