Changeset faff334 for pages/api/blackjack
- Timestamp:
- 07/18/22 13:59:55 (2 years ago)
- Branches:
- main
- Children:
- 22367db
- Parents:
- e903234
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pages/api/blackjack/index.js
re903234 rfaff334 6 6 import { calculateEarnings, calculateSideBetEarnings } from './calculateEarnings'; 7 7 8 import { rooms, update_rooms_to_database } from '../postgre/index'8 import { rooms, saveGameInHistory, update_rooms_to_database } from '../postgre/index' 9 9 10 10 /** … … 37 37 38 38 if (rooms[session_id] !== undefined && rooms[session_id].status.substr(1, 1) === '5') { 39 rooms[session_id] = {...game, playerCards: [...game.playerCards], dealerCards: [...game.dealerCards]};39 rooms[session_id] = {...game, displayName: rooms[session_id].displayName, username: rooms[session_id].username, playerCards: [...game.playerCards], dealerCards: [...game.dealerCards]}; 40 40 41 41 rooms[session_id].betOutcomeMessageShown = true; … … 141 141 } 142 142 }); 143 144 saveGameInHistory('blackjack', rooms[session_id], rooms[session_id].username); 143 145 144 146 return ; … … 201 203 } 202 204 }); 205 206 saveGameInHistory('blackjack', rooms[session_id], rooms[session_id].username); 203 207 } 204 208 else {
Note:
See TracChangeset
for help on using the changeset viewer.