Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ npm-debug.log
!.yarn/releases
!.yarn/sdks
!.yarn/versions


cypress/videos
2 changes: 1 addition & 1 deletion client/src/config/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const isUCB = document.location.hostname === 'waamd.lib.berkeley.edu';
export const isUCB = ['waamd.ucblib.org', 'waamd.lib.berkeley.edu'].includes(document.location.hostname);
export const GOOGLE_ANALYTICS_ACCOUNT_ID =
process.env.REACT_APP_GOOGLE_ANALYTICS_ACCOUNT_ID || 'G-3H4T9L018E';
export const GOOGLE_MAPS_API_KEY =
Expand Down
4 changes: 2 additions & 2 deletions server/config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function(passport) {

// used to deserialize the user
passport.deserializeUser(function(id, done) {
User.findById(id)
User.findByPk(id)
.then(user => {
done(null, user);
})
Expand All @@ -52,7 +52,7 @@ module.exports = function(passport) {
return done(null, false);
}

User.findById(uid)
User.findByPk(uid)
.then(user => {
if (!user) {
return done(null, false);
Expand Down