Skip to content

Instantly share code, notes, and snippets.

@dmcassel
Last active September 16, 2015 17:36
Show Gist options
  • Save dmcassel/e875e35473afd8e9b7c5 to your computer and use it in GitHub Desktop.
Save dmcassel/e875e35473afd8e9b7c5 to your computer and use it in GitHub Desktop.
function checkStatus() {
// look up the set of databases this user is allowed to work with
var myDatabaseIds = ...;
if (myDatabaseIds.length > 0) {
return xdmp.databaseBackupStatus(myDatabaseIds;
}
}
// module.amp takes a function as input and returns a function
// that has the same signature as the original function.
module.exports.checkStatus = module.amp(checkStatus);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment