Urigo/Ionic2CLI-Meteor-WhatsApp

Missing step between 16.8 and 16.9 - fcmToken does not exists on type 'Users'

Opened this issue · 3 comments

Hello,

I am currently following this really good tutorial.

But it seems that a step is missing between 16.8 and 16.9. Indeed I figure out myself that we had to edit our model of User in order to add the fcmToken label inside. This is not clearly explained (or at least as explained as all the other steps) inside the tutorial itself.

Hope it will help.

Hi @shyne99 . Thank you for this piece of info. My server was crushing because of this.

But just to add clarity to what you are saying; we need to add this line fcmToken?: string; to:

api\server\models.ts

...
export interface User extends Meteor.User {
  profile?: Profile;
  fcmToken?: string;
}

...

Exactly.

That's the commit: 5e50311

The commit is already in the tutorial, but somehow I messed up the template. I'll fix it in the next update. Thanks for reporting.