update item queries

This commit is contained in:
Luke Pulverenti 2015-10-29 15:01:04 -04:00
parent 75abf69c5c
commit 39b96c14d1
2 changed files with 8 additions and 4 deletions

View File

@ -140,7 +140,7 @@
if (requiresVerification) {
store.when(id).verified(function (p) {
alert('verified');
//alert('verified');
updateProductInfo(p);
p.finish();
});
@ -154,6 +154,9 @@
Logger.log('finishing previously created transaction');
if (requiresVerification) {
//product.verify();
if (product.owned) {
alert('sub owned!');
}
} else {
product.finish();
}
@ -201,6 +204,7 @@
}).map(function (o) {
o.id = getStoreFeatureId(o.feature);
o.buttonText = Globalize.translate(o.buttonText, getProduct(o.feature).price);
return o;
});

View File

@ -257,11 +257,11 @@
function onProductUpdated(e, product) {
var deferred = currentDisplayingDeferred;
if (product.owned) {
if (deferred && product.owned) {
var deferred = currentDisplayingDeferred;
if (currentDisplayingProductInfos.filter(function (p) {
if (deferred && currentDisplayingProductInfos.filter(function (p) {
return product.id == p.id;