Improvement in Subs and FireMap Union

This commit is contained in:
vjrj 2017-12-19 20:02:14 +01:00
parent 497724443f
commit 1742cd4913
19 changed files with 390 additions and 299 deletions

View file

@ -9,9 +9,10 @@ Meteor.methods({
location: Match.ObjectIncluding({ lat: Number, lon: Number }),
distance: Number
});
const type = 'web';
try {
return Subscriptions.insert({ owner: this.userId, ...doc });
return Subscriptions.insert({ owner: this.userId, type, ...doc });
} catch (exception) {
throw new Meteor.Error('500', exception);
}