Added kafka queue and initial messages for delete account (#10036)

* Added kafka queue and initial messages for delete account

* Checked for env vars
This commit is contained in:
Keith Holliday
2018-02-27 09:57:37 -07:00
committed by GitHub
parent 7dcd550209
commit be71c5f844
5 changed files with 68 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import {
getUserInfo,
sendTxn as txnEmail,
} from '../../libs/email';
import Queue from '../../libs/queue';
import nconf from 'nconf';
import get from 'lodash/get';
@@ -432,6 +433,8 @@ api.deleteUser = {
]);
}
if (feedback) Queue.sendMessage({feedback, username: user.profile.name}, user._id);
res.analytics.track('account delete', {
uuid: user._id,
hitType: 'event',