Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaG committed Sep 20, 2014
1 parent 0f00fad commit 46106d4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/telescope-update-prompt/lib/server/phone_home.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ Meteor.methods({

var url = 'http://version.telescopeapp.org/';

var params = {
currentVersion: telescopeVersion,
siteTitle: getSetting('title'),
siteUrl: getSiteUrl(),
users: Meteor.users.find().count(),
posts: Posts.find().count(),
comments: Comments.find().count()
}

if(Meteor.user() && isAdmin(Meteor.user())){

this.unblock();
try {
var result = HTTP.get(url, {
params: {
currentVersion: telescopeVersion,
siteTitle: getSetting('title'),
siteUrl: getSiteUrl(),
users: Meteor.users.find().count(),
posts: Posts.find().count(),
comments: Comments.find().count()
}
params: params
})
return result;
} catch (e) {
Expand Down

0 comments on commit 46106d4

Please sign in to comment.