Skip to content

Commit ec0366e

Browse files
feat: new pricing
1 parent 73a3967 commit ec0366e

File tree

17 files changed

+599
-366
lines changed

17 files changed

+599
-366
lines changed

functions/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ exports.webhook = functions.https.onRequest(async (req, res) => {
122122
if (valid) {
123123
if (alertParser.supports(req)) {
124124
const subscription = alertParser.parse(req);
125-
const userId = subscription.passthrough;
125+
const userId =
126+
typeof subscription.passthrough === 'string'
127+
? subscription.passthrough
128+
: subscription.passthrough.userId;
126129

127130
const user = await db.collection('users').doc(userId).get();
128131
if (user.exists) {

src/components/ContentWrap.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ export default class ContentWrap extends Component {
804804
onCSSActiviation() {
805805
if (!window.user) {
806806
this.props.onLogin();
807-
} else if (userService.isPro()) {
807+
} else if (userService.isPlusOrAdvanced()) {
808808
return true;
809809
} else {
810810
this.props.onProFeature();

0 commit comments

Comments
 (0)