Skip to content

Commit

Permalink
FIX: redemption request id was different for node and data
Browse files Browse the repository at this point in the history
  • Loading branch information
bxute committed Apr 21, 2018
1 parent 3818e02 commit a689468
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file removed app/release/app-release.apk
Binary file not shown.
Binary file modified app/release/kiti.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,19 @@ public void putRedemptionRequest(long amount , String phoneToRedeem) {
return;


String redemptionRequestId = generateRedeemRequestId();

RedeemRequestModel redeemRequestModel = new RedeemRequestModel(
amount,
generateRedeemRequestId(),
redemptionRequestId,
currentDateTimeString,
"PAYTM",
phoneToRedeem);

database.getReference()
.child(FirebaseDataField.REDEMPTION_REQ)
.child(userPhone)
.child(generateRedeemRequestId())
.child(redemptionRequestId)
.setValue(redeemRequestModel);

//deduct balance
Expand Down

0 comments on commit a689468

Please sign in to comment.