Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/iap_refresh_management.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function update_iap_history_with_apple_if_needed_and_return_updated_user(a
}
}

async function should_iap_transaction_history_be_refreshed(account) {
function should_iap_transaction_history_be_refreshed(account) {
const account_active = (account.expiry && current_time() < account.expiry) ? true : false;
const last_transaction = account.transactions[account.transactions.length - 1];
if (account_active || last_transaction == undefined || last_transaction.type != "iap") {
Expand Down
30 changes: 10 additions & 20 deletions test/controllers/mock_iap_controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.