mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
use correct identifier for apple
This commit is contained in:
parent
893b4d8def
commit
1492a8af0d
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ async function iapIOSVerify (user, iapBody) {
|
|||
appleRes = await iapValidate(iap.APPLE, iapBody.transaction.receipt);
|
||||
|
||||
if (iap.isValidated(appleRes)) {
|
||||
token = 'aaa';
|
||||
token = appleRes.receipt.transactionIdentifier;
|
||||
|
||||
let existingReceipt = await IapPurchaseReceipt.findOne({
|
||||
_id: token,
|
||||
|
|
|
|||
Loading…
Reference in a new issue