File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ exp('closeAtm', async () => {
1919 setAtmIsOpen ( false ) ;
2020} ) ;
2121
22- exp ( 'giveNearestPlayerCash' , ( amount : string ) => {
23- giveCash ( 0 , [ amount ] ) ;
22+ exp ( 'giveNearestPlayerCash' , ( amount : number ) => {
23+ giveCash ( 0 , [ amount . toString ( ) ] ) ;
2424} ) ;
2525
26- exp ( 'createInvoiceForNearestPlayer' , ( amount : string , message : string ) => {
27- createInvoice ( 0 , [ amount , message ] ) ;
26+ exp ( 'createInvoiceForNearestPlayer' , ( amount : number , message : string ) => {
27+ createInvoice ( 0 , [ amount . toString ( ) , message ] ) ;
2828} ) ;
2929
3030exp ( 'depositMoney' , ( amount : number ) => {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class CashService {
6161 throw new ServerError ( BalanceErrors . InsufficentFunds ) ;
6262 }
6363
64- await this . handleAddCash ( source , amount ) ;
64+ await this . handleAddCash ( req . data . source , amount ) ;
6565 await this . handleRemoveCash ( req . source , amount ) ;
6666
6767 return true ;
You can’t perform that action at this time.
0 commit comments