Added fetching User data from patreon and writing it to the DiceCloud user database

This commit is contained in:
Stefan Zermatten
2019-03-06 17:05:44 +02:00
parent 3fbb006783
commit b3371fca53
7 changed files with 494 additions and 226 deletions

View File

@@ -74,6 +74,36 @@ Schemas.User = new SimpleSchema({
type: String,
optional: true,
},
patreon: {
type: Object,
optional: true,
},
"patreon.accessToken": {
type: String,
optional: true,
},
"patreon.refreshToken": {
type: String,
optional: true,
},
"patreon.userId": {
type: String,
optional: true,
},
"patreon.entitledCents": {
type: Number,
decimal: false,
optional: true,
},
"patreon.entitledCentsOverride": {
type: Number,
decimal: false,
optional: true,
},
"patreon.error": {
type: String,
optional: true,
},
});
Meteor.users.attachSchema(Schemas.User);