Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Update sample to use UPDATES_USER_ID argument
Browse files Browse the repository at this point in the history
Bug: 80154221
Change-Id: I71f551eb444eff628e32c52d851e7fdb0ec6a920
  • Loading branch information
taycaldwell committed May 23, 2018
1 parent 5f0ca05 commit c655062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ app.intent('setup_push', (conv) => {
// Save intent and user id if user gave consent.
app.intent('finish_push_setup', (conv, params) => {
if (conv.arguments.get('PERMISSION')) {
const userID = conv.user.id;
const userID = conv.arguments.get('UPDATES_USER_ID');
return db.collection(FirestoreNames.USERS)
.add({
[FirestoreNames.INTENT]: TELL_LATEST_TIP_INTENT,
Expand Down

2 comments on commit c655062

@koromkorom
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still supported?
The documentation on this is really confusing. There is a lot of deprecation going on.

@smishra2
Copy link
Contributor

@smishra2 smishra2 commented on c655062 Aug 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @koromkorom , yep this is the correct behavior. This is separate from anonymous user id. Sorry about the confusion!

Please sign in to comment.