Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Jiayaowang walkinpost #17

Merged
merged 13 commits into from
Oct 21, 2018
Merged

Jiayaowang walkinpost #17

merged 13 commits into from
Oct 21, 2018

Conversation

Jess0-0
Copy link
Contributor

@Jess0-0 Jess0-0 commented Oct 21, 2018

No description provided.

@@ -31,6 +31,7 @@ angular.module('app')
populateSchools();
_setupForm();


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove newline

if (err) {
return callback(err);
}
return callback(null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format this better?

* @param {String} req User's information.
* @param {Function} callback args(err, user)
*/
UserController.createWalkinUser = function (req, callback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't give req. as param. Instead, pass a user obj. Keep funcs small and specific.

Copy link
Contributor

@cktang88 cktang88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@cktang88 cktang88 merged commit 99d92ff into master Oct 21, 2018
@cktang88 cktang88 deleted the jiayaowang-walkinpost branch October 21, 2018 22:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants