Changeset faff334 for pages/api/poker


Ignore:
Timestamp:
07/18/22 13:59:55 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
22367db
Parents:
e903234
Message:

Ability for admin to watch live games and for user to see games history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/api/poker/tableSpecific.js

    re903234 rfaff334  
    1 import { tables } from '../postgre/index';
     1import { saveGameInHistory, tables } from '../postgre/index';
    22
    33import { deck } from './gameStates'
     
    209209
    210210            player.wonAmount = winnings;
     211
     212            saveGameInHistory('poker', table, player.username)
    211213        })
    212214
Note: See TracChangeset for help on using the changeset viewer.