Last active
July 10, 2017 07:55
-
-
Save mdnmdn/9a51919fbde4f7dbd75c22e64c60a18d to your computer and use it in GitHub Desktop.
Total js definition to retain orginal post values using a schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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