This pull request changes the way validateNameUnique functions work in the Game and Team controller to resolve issues with the way Postgres handled .count() methods.
Additionally, a return null; line was added to the authentication middleware to resolve a runaway promise warning.
Known Issues
Resolving this issue uncovered an issue that has been present in the updateGame method. As a result, 1 test has been marked as "pending".
See #60.
Description
This pull request changes the way
validateNameUnique
functions work in theGame
andTeam
controller to resolve issues with the wayPostgres
handled.count()
methods. Additionally, areturn null;
line was added to theauthentication
middleware to resolve a runaway promise warning.Known Issues
Resolving this issue uncovered an issue that has been present in the
updateGame
method. As a result, 1 test has been marked as "pending". See #60.