Ignore:
Timestamp:
07/16/22 11:18:24 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
e007fcd
Parents:
433e0c5
Message:

Added 1 second update_state calls in blackjack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/api/postgre/index.js

    r433e0c5 r55701f0  
    324324        return ;
    325325      }
     326      if (parseInt(body?.data?.amount) > 5000) {
     327        res.json({
     328          success: false,
     329          message: 'Failed to deposit. Insufficient credit on card.',
     330        });
     331        return ;
     332      }
    326333
    327334      let session = sessions.find(session => session.id === body?.session_id)
     
    338345              credits: session.credits
    339346            })
     347           
     348            update_sessions_to_database();
    340349          });
    341350        }
     
    415424              credits: session.credits
    416425            })
     426
     427            update_sessions_to_database();
    417428          });
    418429        }
     
    762773}
    763774load_rooms_from_database();
    764  
Note: See TracChangeset for help on using the changeset viewer.