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

estate page #97

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
743ebee
create navbar component with style #40
Nov 1, 2021
3e7fbfc
create user info card
muhammadharoun Nov 2, 2021
d67fb18
make data as props
muhammadharoun Nov 2, 2021
3fabdd6
create home images
muhammadharoun Nov 2, 2021
162dc4d
edit state name to logged #40
Nov 3, 2021
77d3074
edit qurey to select all data like agent info. , estate agent #80
Nov 3, 2021
9279265
property card
muhammadharoun Nov 4, 2021
350caca
change func and file name
muhammadharoun Nov 4, 2021
3344af2
change func name add margin
muhammadharoun Nov 4, 2021
d238c47
Reslove conflicts
Mu7ammadAbed Nov 5, 2021
8358748
edit link router #40
Nov 6, 2021
1a5be00
Changes Requested
muhammadharoun Nov 7, 2021
5d4e5a8
remove comment
muhammadharoun Nov 7, 2021
bca9f7a
add changes
muhammadharoun Nov 7, 2021
70bc9a8
create query for get agent,and edit query estates #80
mohammedsalah7 Nov 7, 2021
ff24d02
Merge pull request #77 from GSG-G10/53-user-contact-card
Mu7ammadAbed Nov 7, 2021
f31301e
Merge pull request #78 from GSG-G10/54-home-images-section
Mu7ammadAbed Nov 7, 2021
f506223
create router in app , and format style #40
mohammedsalah7 Nov 7, 2021
d2085b8
solve conflict #40
mohammedsalah7 Nov 7, 2021
1d3c26a
Merge pull request #74 from GSG-G10/40-navbar
Mu7ammadAbed Nov 7, 2021
358bcbe
Merge pull request #81 from GSG-G10/80-edit-query
Mu7ammadAbed Nov 7, 2021
f021b2c
add PropertyCard and change file name
muhammadharoun Nov 7, 2021
a584905
solve conflect
muhammadharoun Nov 7, 2021
de0882c
convert h1 to div
muhammadharoun Nov 7, 2021
5ba39c8
fix rectangle
muhammadharoun Nov 7, 2021
2e4488d
Merge pull request #84 from GSG-G10/51-property-card
muhammadharoun Nov 7, 2021
e4d9087
add query and controler
muhammadharoun Nov 7, 2021
e535cfd
complete function
muhammadharoun Nov 7, 2021
737a5e8
add changes
muhammadharoun Nov 8, 2021
cc22fcf
Merge pull request #91 from GSG-G10/90-getEstateQuer
muhammadharoun Nov 8, 2021
f442434
page stucture
muhammadharoun Nov 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
edit qurey to select all data like agent info. , estate agent #80
mohammedsalah7 committed Nov 3, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 77d3074a04aff2b1ca389d00d45bd4c6c70a1678
2 changes: 1 addition & 1 deletion server/database/quieres/userEstatesQuiery.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const connection = require('../config/connection');

module.exports = (userId) => connection.query('SELECT * FROM estates WHERE agent_id = $1', [userId]);
module.exports = (userId) => connection.query('SELECT * FROM agents INNER JOIN estates on agents.id = estates.agent_id INNER JOIN images ON estates.id = images.estate_id WHERE agents.id = ($1) ', [userId]);