Browse Source

stub-out some wip

develop
Rob Colbert 4 months ago
parent
commit
e1bc9ec2c2
  1. 10
      app/services/weather.js

10
app/services/weather.js

@ -7,12 +7,12 @@
'use strict';
const mongoose = require('mongoose');
const User = mongoose.model('User');
// const mongoose = require('mongoose');
// const User = mongoose.model('User');
const geoip = require('geoip-lite');
const { SiteService, SiteError } = require('../../lib/site-lib');
const { SiteService/*, SiteError*/ } = require('../../lib/site-lib');
class WeatherService extends SiteService {
@ -49,6 +49,7 @@ class WeatherService extends SiteService {
}
if (req.ip) {
const visit = { };
const geo = geoip.lookup(req.ip);
if (geo) {
visit.geoip = {
@ -79,9 +80,10 @@ class WeatherService extends SiteService {
'User-Agent': this.userAgent,
},
});
return response;
}
async getLocationReport (location) {
async getLocationReport (/* location */) {
}
}

Loading…
Cancel
Save