popok /win fix
This commit is contained in:
parent
a48cfa4db2
commit
abbcf90feb
|
|
@ -346,6 +346,8 @@ func (s *service) ProcessWin(ctx context.Context, req *domain.PopOKWinRequest) (
|
||||||
return nil, fmt.Errorf("transaction recording failed")
|
return nil, fmt.Errorf("transaction recording failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf("\n\n Win balance is:%v\n\n", float64(userWallets[0].Balance)/100)
|
||||||
|
|
||||||
return &domain.PopOKWinResponse{
|
return &domain.PopOKWinResponse{
|
||||||
TransactionID: req.TransactionID,
|
TransactionID: req.TransactionID,
|
||||||
ExternalTrxID: fmt.Sprintf("%v", tx.ID),
|
ExternalTrxID: fmt.Sprintf("%v", tx.ID),
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ func (s *Service) AddToWallet(
|
||||||
return domain.Transfer{}, err
|
return domain.Transfer{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
go s.notificationSvc.UpdateLiveWalletMetricForWallet(ctx, wallet)
|
// go s.notificationSvc.UpdateLiveWalletMetricForWallet(ctx, wallet)
|
||||||
|
|
||||||
// Log the transfer here for reference
|
// Log the transfer here for reference
|
||||||
newTransfer, err := s.transferStore.CreateTransfer(ctx, domain.CreateTransfer{
|
newTransfer, err := s.transferStore.CreateTransfer(ctx, domain.CreateTransfer{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user