Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/grant-revoke-access-to-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ exports.dynamodbStreamHandler = async (event, context) => {
/*
successfully_subscribed is set true:
- for SaaS Contracts: no email is sent but after receiving the message in the subscription topic
- for SaaS Subscriptions: after reciving the subscribe-success message in subscription-sqs.js
- for SaaS Subscriptions: after receiving the subscribe-success message in subscription-sqs.js

subscription_expired is set to true:
- for SaaS Contracts: after detecting expired entitlement in entitlement-sqs.js
- for SaaS Subscriptions: after reciving the unsubscribe-success message in subscription-sqs.js
- for SaaS Subscriptions: after receiving the unsubscribe-success message in subscription-sqs.js
*/
const grantAccess = newImage.successfully_subscribed === true &&
typeof newImage.is_free_trial_term_present !== "undefined" &&
Expand Down