Skip to content
Open
Changes from 1 commit
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
01f3b39
Update app.js
douglasdriving Oct 26, 2022
e2a3214
added db connection
douglasdriving Oct 26, 2022
e9e8195
Update app.js
douglasdriving Oct 26, 2022
bf6adfc
Update app.js
douglasdriving Oct 26, 2022
8408eef
some installs might help???
douglasdriving Oct 26, 2022
8b7e677
Update app.js
douglasdriving Oct 26, 2022
496641b
Update app.js
douglasdriving Oct 26, 2022
bd1d8e5
db initialization functions
douglasdriving Oct 26, 2022
62aac14
more test routes
douglasdriving Oct 26, 2022
7235dfd
Update app.js
douglasdriving Oct 26, 2022
151baf3
Create dev branch
douglasdriving Oct 27, 2022
d02d5ab
some file structure
douglasdriving Oct 27, 2022
4255890
connect to local db if not in heroku
douglasdriving Oct 27, 2022
5a1a94b
dotENV added
douglasdriving Oct 27, 2022
0130846
user paths done
douglasdriving Oct 27, 2022
377e2d6
Added create room route
douglasdriving Oct 28, 2022
968c74f
Join room route
douglasdriving Oct 28, 2022
a926543
progress on add scenario route
douglasdriving Oct 28, 2022
871256a
upload scenario route progress
douglasdriving Oct 28, 2022
96d97a8
scenario posting
douglasdriving Oct 31, 2022
3eeb2bf
scenario posting accounts for ends
douglasdriving Oct 31, 2022
e8da14a
get available rooms route
douglasdriving Oct 31, 2022
94a9768
get user room route
douglasdriving Nov 1, 2022
110b47c
get archive route
douglasdriving Nov 1, 2022
c7057fa
Cleanup
douglasdriving Nov 1, 2022
c914c3c
get room info route - back alive
douglasdriving Nov 1, 2022
fc4c1b5
refactoring route functions progress
douglasdriving Nov 1, 2022
b4009be
more cleanups
douglasdriving Nov 1, 2022
8afb10a
transaction func update
douglasdriving Nov 2, 2022
9688102
room router cleanup
douglasdriving Nov 2, 2022
4c024a5
cleanup
douglasdriving Nov 2, 2022
4bd9130
clean
douglasdriving Nov 2, 2022
dd0565c
Update userRouter.js
douglasdriving Nov 2, 2022
bc87f86
query return data fixes
douglasdriving Nov 4, 2022
71c1f90
login routes and jwt implemented
douglasdriving Nov 8, 2022
b043139
password hashin
douglasdriving Nov 8, 2022
33c7728
auto login
douglasdriving Nov 8, 2022
daa3c17
hotfix on create room path
douglasdriving Nov 8, 2022
e2aad6b
another hotfix
douglasdriving Nov 8, 2022
a343fc6
backend route fix for token requests
douglasdriving Nov 10, 2022
3c80968
bugfix
douglasdriving Nov 10, 2022
5dfd095
better error responses from server
douglasdriving Nov 10, 2022
bdf6533
Update scenarioRouter.js
douglasdriving Nov 10, 2022
fe964a8
error handling on create user
douglasdriving Nov 10, 2022
54f58fb
improved backend checks create user
douglasdriving Nov 10, 2022
254689b
push notifications added
douglasdriving Nov 11, 2022
b091de1
Merge branch 'main' into dev
douglasdriving Nov 11, 2022
af80f93
bugfix
douglasdriving Nov 16, 2022
4319c30
push notification fix
douglasdriving Nov 16, 2022
148e6b5
updated available rooms query
douglasdriving Nov 17, 2022
5066526
turn change on deadline
douglasdriving Nov 17, 2022
e872b43
Merge branch 'dev'
douglasdriving Nov 17, 2022
0ea560d
strike system implemented
douglasdriving Nov 18, 2022
53ef4fc
Merge branch 'dev'
douglasdriving Nov 18, 2022
52a4128
strikes returned with room data
douglasdriving Nov 18, 2022
c37d8aa
notification data fix
douglasdriving Nov 19, 2022
4e6898c
notification hotfixing
douglasdriving Nov 19, 2022
7f5574d
Add a check to make sure really is full
douglasdriving Nov 21, 2022
e3c85bc
sätt turn end rätt
douglasdriving Nov 21, 2022
20f0a27
Update roomRouter.js
douglasdriving Nov 21, 2022
1897c3d
room correction fix for new rooms
douglasdriving Nov 22, 2022
6c8a3ad
Update roomRouter.js
douglasdriving Dec 1, 2022
63a243b
added route for fetching user chars
douglasdriving Dec 3, 2022
58c1370
begin work on input validation
douglasdriving Dec 9, 2022
01659a5
input validation
douglasdriving Dec 11, 2022
670f538
correct feedback on room creation length
douglasdriving Dec 11, 2022
2bf856d
added test job to schedule in heroky
douglasdriving Dec 12, 2022
64e2aad
created auto room deadline clean function
douglasdriving Dec 12, 2022
d70d893
bugfix to deadline schedule function
douglasdriving Dec 12, 2022
4335b8c
input validation added dots
douglasdriving Dec 12, 2022
c911993
start on password reset flow
douglasdriving Dec 12, 2022
9f8b5b0
revert changes for email var
douglasdriving Dec 13, 2022
3b60050
Kick new players if they dont write in 30
douglasdriving Dec 13, 2022
6deb593
user request bugs, might fix?
douglasdriving Dec 13, 2022
fe291d8
possible fix to user fetch backend
douglasdriving Dec 13, 2022
83647cf
quickfix for writing user query correctly
douglasdriving Dec 13, 2022
614c0e3
Merge branch 'main' into dev
douglasdriving Dec 13, 2022
b4f2f95
prevent user from getting rooms that they are kicked from
douglasdriving Dec 13, 2022
916aafd
fixed bugg: players are immediately kicked when joining a new room
douglasdriving Dec 13, 2022
d175504
allow - character
douglasdriving Dec 14, 2022
f1206bf
corrected deadline passed function
douglasdriving Dec 23, 2022
beae49f
scenario add fix
douglasdriving Dec 23, 2022
2c41d17
fixed passed turn bug
douglasdriving Dec 23, 2022
a96b2a5
create ending works
douglasdriving Dec 23, 2022
27a6473
Update scenarioRouter.js
douglasdriving Dec 23, 2022
caf1db7
remove 500 char limit on start scenario
douglasdriving Dec 25, 2022
ddb8a41
room deadline request rout
douglasdriving Jan 16, 2023
ae1c42c
+ ongoing rooms query
douglasdriving Jan 23, 2023
c2518c7
Added Feed Rout
douglasdriving Jan 24, 2023
aaae9af
added a random prompt route
douglasdriving Jan 27, 2023
3bcaa2d
added user stat route
douglasdriving Feb 1, 2023
7d8ed80
fixed db function for new db node structure
douglasdriving Feb 3, 2023
ed72709
Updated routes to work when nodes can be empty
douglasdriving Feb 3, 2023
d9f2ac7
getting prompts back on room data request
douglasdriving Feb 3, 2023
fed5a5e
worked on new node post route
douglasdriving Feb 4, 2023
bdd7c7c
färdigställe post node route (buggfix)
douglasdriving Feb 6, 2023
87b9218
scenario add route: checks done
douglasdriving Feb 6, 2023
86a2c5f
create node route fix. now returns prompt
douglasdriving Feb 6, 2023
448296c
post scenario transaction done
douglasdriving Feb 6, 2023
cf9915b
add scenario route now works
douglasdriving Feb 6, 2023
d22f7f8
feed timestamp correction
douglasdriving Feb 6, 2023
8ab0703
new route to get camp data
douglasdriving Feb 6, 2023
2540f30
get active camps route
douglasdriving Feb 6, 2023
6efe1ef
get player camps route
douglasdriving Feb 6, 2023
d4bd202
create camp query, began work
douglasdriving Feb 6, 2023
8df982e
finalized camp post route
douglasdriving Feb 8, 2023
a6a9de9
camp routes done
douglasdriving Feb 8, 2023
1f72f4f
get stats route updated for new node db structure
douglasdriving Feb 8, 2023
6fe3701
old room function fix
douglasdriving Feb 8, 2023
76527d4
added new archive route
douglasdriving Feb 9, 2023
0eabd3b
bugs in node posting order
douglasdriving Feb 10, 2023
b776a88
fix player stats query
douglasdriving Feb 10, 2023
fc51054
added route to retrieve latest news
douglasdriving Feb 13, 2023
83f1fd9
new notifications when someone uploads a scenario
douglasdriving Feb 14, 2023
8d0cbbd
tog bort dubblering av expo tokens vid push
douglasdriving Feb 14, 2023
bda162d
like/dislike routes added
douglasdriving Feb 15, 2023
a9825b4
get node likes with camp data
douglasdriving Feb 15, 2023
fa8e8a9
new login route using google token
douglasdriving Feb 17, 2023
7eeaa9f
added route to set display name
douglasdriving Feb 17, 2023
fd8a9cf
route for updating expo token
douglasdriving Feb 21, 2023
0bb6f8f
auth middleware uppdaterad on tillagd
douglasdriving Feb 21, 2023
c72b73c
expo token check buggfix
douglasdriving Feb 21, 2023
1d6ab36
Update userRouter.js
douglasdriving Feb 22, 2023
00136d8
bugfixes with user id in auth
douglasdriving Feb 24, 2023
64d299b
stamp logins in db
douglasdriving Feb 24, 2023
77b242d
fixed route for fetching player rooms
douglasdriving Feb 28, 2023
b6fa2bd
player stats only count finished nodes
douglasdriving Feb 28, 2023
9eaff16
my camps route fix
douglasdriving Feb 28, 2023
0ac010b
open rooms route fix
douglasdriving Feb 28, 2023
18c68dd
accepts camps without a description
douglasdriving Mar 8, 2023
21eecee
bugfix when uploading camp without description
douglasdriving Mar 8, 2023
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
Update roomRouter.js
  • Loading branch information
douglasdriving committed Nov 21, 2022
commit 20f0a274b71816db447df5436eb014f671a35d11
1 change: 1 addition & 0 deletions routers/roomRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const AttachAvailableRoomsQuery = async (req, res, next) => {
rooms.full = false
AND rooms.finished = false
AND rooms.next_player_id IS NULL
AND rooms_users.active = true
AND NOT EXISTS(SELECT * FROM rooms_users WHERE user_id = $1 AND room_id = rooms.id)
GROUP BY (rooms_users.user_id, rooms.id, users.name)
ORDER BY id`,
Expand Down