Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link front end details form with back end database #96

Merged
merged 21 commits into from
May 15, 2018
Merged

Link front end details form with back end database #96

merged 21 commits into from
May 15, 2018

Conversation

helenzhou6
Copy link
Collaborator

Closes #36

@helenzhou6 helenzhou6 added this to the Build Sprint 1 milestone May 14, 2018
@helenzhou6 helenzhou6 requested review from tdoran, vlbee and LawEKS May 14, 2018 15:38
@vlbee
Copy link
Collaborator

vlbee commented May 14, 2018

I'm unable to review this because I'm getting an error when trying to run the site locally. Can you check? Error below -
Could you also past the comment explanation of what you have done as a comment into this pull request please?

Error: Failed to deserialize user out of session at pass (/stackMatch/node_modules/passport/lib/authenticator.js:344:19) at deserialized (/stackMatch/node_modules/passport/lib/authenticator.js:349:7) at getMemberData.then (/Users/Vanessa/CODING/FAC/part2/stackMatch/src/oauth.js:63:5) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)

Copy link
Collaborator

@vlbee vlbee left a comment

Choose a reason for hiding this comment

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

I think we should change the db.sql so that FAC code is written as FAC 'cohort' so that this code is much more clear.


const selectAllMembers = 'SELECT * FROM members';
const getFilteredMembers = arg => dbConnection.query('SELECT * FROM members WHERE github_id = $1', [arg]).then(res => res[0]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We already have getMemberData which does the same thing

@LawEKS LawEKS merged commit 838a4cc into master May 15, 2018
@LawEKS LawEKS deleted the save-btn branch May 15, 2018 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants