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

change file names to make it clearer #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

change file names to make it clearer #69

wants to merge 1 commit into from

Conversation

veredrec
Copy link
Collaborator

relates #55

@veredrec veredrec requested review from KatiaAsh and Wyrd00 August 17, 2017 09:38
@@ -1,7 +1,7 @@
const dbConnection = require('../database/db_connection.js');

const getData = callback => {
const getQuery = 'SELECT books.book_name, books.author, books.cover_url, users.username, FROM books JOIN users ON books.user_id = users.id;';
const getQuery = 'SELECT books.book_name, books.author, books.cover_url, user.username, FROM books JOIN users ON books.user_id = users.id;';
Copy link
Member

Choose a reason for hiding this comment

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

should be users not user

@@ -1,7 +1,7 @@
const dbConnection = require('../database/db_connection.js');

const getData = callback => {
const getQuery = 'SELECT books.book_name, books.author, books.cover_url, users.username, FROM books JOIN users ON books.user_id = users.id;';
const getQuery = 'SELECT books.book_name, books.author, books.cover_url, user.username, FROM books JOIN users ON books.user_id = users.id;';
Copy link
Member

Choose a reason for hiding this comment

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

doesn't work cuz we are choosing users from books table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants