]> git.cworth.org Git - lmno-server/blobdiff - lmno.js
LMNO: Simplify storage of the games array by not storing ID next to game
[lmno-server] / lmno.js
diff --git a/lmno.js b/lmno.js
index 0fd491a6293bf01672ba7d896ecea16689ce89b5..5f5b2c7248db82fbd289002033bbd4c8cc24b05b 100644 (file)
--- a/lmno.js
+++ b/lmno.js
@@ -71,7 +71,6 @@ class LMNO {
     const game = new engine.Game(id);
 
     this.games[id] = {
-      id: id,
       game: game
     };
 
@@ -136,7 +135,7 @@ app.get('/[a-zA-Z0-9]{4}', (request, response) => {
       response.sendStatus(404);
       return;
   }
-  response.redirect(301, `/${game.game.meta.identifier}/${game.id}/`);
+  response.redirect(301, `/${game.game.meta.identifier}/${game.game.id}/`);
 });
 
 /* LMNO middleware to lookup the game. */