Merge branch 'release' into develop

This commit is contained in:
Sabe Jones
2021-03-02 11:20:45 -06:00
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "habitica",
"version": "4.183.0",
"version": "4.183.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "habitica",
"description": "A habit tracker app which treats your goals like a Role Playing Game.",
"version": "4.183.0",
"version": "4.183.1",
"main": "./website/server/index.js",
"dependencies": {
"@babel/core": "^7.12.10",
+1 -1
View File
@@ -179,7 +179,7 @@ export default function randomDrop (user, options, req = {}, analytics) {
});
}
if (isEnrolledInDropCapTest) {
if (isEnrolledInDropCapTest && dropCapReached) {
analytics.track('drop cap reached', {
uuid: user._id,
dropCap: maxDropCount,
+5
View File
@@ -251,6 +251,11 @@ function _sendDataToGoogle (eventType, data) {
function _sendPurchaseDataToAmplitude (data) {
const amplitudeData = _formatDataForAmplitude(data);
// Stripe transactions come via webhook. We can log these as Web events
if (data.paymentMethod === 'Stripe' && amplitudeData.platform === 'Unknown') {
amplitudeData.platform = 'Web';
}
amplitudeData.event_type = 'purchase';
amplitudeData.revenue = data.purchaseValue;