Ionic2CLI-Meteor-WhatsApp icon indicating copy to clipboard operation
Ionic2CLI-Meteor-WhatsApp copied to clipboard

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

Open shyne99 opened this issue 7 years ago • 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.

shyne99 avatar Aug 01 '17 15:08 shyne99

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;
}

...

pkitatta avatar Sep 05 '17 03:09 pkitatta

Exactly.

shyne99 avatar Sep 06 '17 17:09 shyne99

That's the commit: https://github.com/Urigo/Ionic2CLI-Meteor-WhatsApp/commit/5e503110c74614b3134fbdc50196b62da359de9d

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.

darkbasic avatar Oct 31 '17 19:10 darkbasic