Last active
January 21, 2022 08:33
-
-
Save adityawibisana/275c378b707e1de46e55af463595deac to your computer and use it in GitHub Desktop.
Medium Sails User Service
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
module.exports = { | |
handleError: (req) => { | |
if (!req.param("username")) { | |
return { | |
code: 1, | |
message: `'username' parameter is needed` | |
} | |
} | |
return null | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment