implement embed mode; add MePage

master
adb-sh 2 years ago
parent 46dc3dc83f
commit fb0a16b77a

@ -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;
}

@ -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

@ -1 +1 @@
Subproject commit cf9626402434ff2e2449457c40182bab92a8ad55
Subproject commit 27ab4c870dd4f4b3bec5eb92c5f181ac00c17c55
Loading…
Cancel
Save