]> git.cworth.org Git - empires-server/commit
LMNO: Simplify storage of the games array by not storing ID next to game
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 00:49:47 +0000 (17:49 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 00:49:47 +0000 (17:49 -0700)
commit2fb7ba00b458f94dff3e924b245c8f02dc20525a
tree559a37f25b3a8997d9e4fd6de03b6c2fd2d93ff3
parent48026578b36151fdb09186f4fd5166db6c67c09a
LMNO: Simplify storage of the games array by not storing ID next to game

In the previous commit, we ensured that a game object always knows its
own ID, so it's unnecessary to store it alongside.

Delete this field from this anonymous object and change all references
to instead access game.id.
lmno.js
templates/admin.html