Skip to content

Instantly share code, notes, and snippets.

@mdnmdn
Last active July 10, 2017 07:55
Show Gist options
  • Save mdnmdn/9a51919fbde4f7dbd75c22e64c60a18d to your computer and use it in GitHub Desktop.
Save mdnmdn/9a51919fbde4f7dbd75c22e64c60a18d to your computer and use it in GitHub Desktop.
Total js definition to retain orginal post values using a schema
var originalOnSchema = F.onSchema;
F.onSchema = function(req,group,name,callback){
req.originalBody = req.body;
originalOnSchema.apply(F,arguments);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment