Changeset 22367db for pages/api/roulette


Ignore:
Timestamp:
07/19/22 19:38:51 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
41d3f60
Parents:
faff334
Message:

Added authentication with google

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/api/roulette/gameStates.js

    rfaff334 r22367db  
    8080        });
    8181
    82         if (player.whichBets?.length > 0)
    83             saveGameInHistory('roulette', game, player.username)
     82        if (player.whichBets?.length > 0) {
     83          game.finished = new Date().toGMTString();
     84          saveGameInHistory('roulette', game, player.username)
     85        }
    8486    }
    8587}
Note: See TracChangeset for help on using the changeset viewer.