diff --git a/backend/api/session.mjs b/backend/api/session.mjs index 98e6ede..0c913c3 100644 --- a/backend/api/session.mjs +++ b/backend/api/session.mjs @@ -21,11 +21,11 @@ export const applySessionRoutes = (router) => { router.get('/session', async (req, res) => { const user = res.locals.user; - const sessionStore = await SessionStore.findOne().byHostSpotifyId(user.id); + const sessionStore = await SessionStore.findOne().bySpotifyId(user.id); if (!sessionStore) { res.status(404); - res.send('you are not hosting a session'); + res.send({ message: 'you are not hosting a session' }); return; } @@ -39,7 +39,7 @@ export const applySessionRoutes = (router) => { if (!sessionStore) { res.status(404); - res.send('you are not hosting a session'); + res.send({ message: 'you are not hosting a session' }); return; } diff --git a/docker-compose.yml.example b/docker-compose.yml.example index eded188..93c3b8b 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -27,7 +27,7 @@ services: - redis frontend: - image: node:alpine + image: node:16-alpine volumes: - ./frontend/:/home/node/app/frontend/ working_dir: /home/node/app/frontend diff --git a/frontend b/frontend index cf96264..27ab4c8 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit cf9626402434ff2e2449457c40182bab92a8ad55 +Subproject commit 27ab4c870dd4f4b3bec5eb92c5f181ac00c17c55