Porównaj commity

..

No commits in common. "38d9e4788cbb264a32ebb44d299d848acca5048a" and "deb80e6f6fda6c8bcfaec62e96f59591c11ca477" have entirely different histories.

2 zmienionych plików z 1 dodań i 12 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ client.connect(err => {
});
async function importActivators(db) {
let response = await axios.get('https://api-db2.sota.org.uk/rolls/activator/-1/0/all/all')
let response = await axios.get('https://api-db.sota.org.uk/admin/activator_roll?associationID=-1')
// Weed out duplicate callsigns, keeping only the record with the higher number of points
let activators = new Map();

Wyświetl plik

@ -18,7 +18,6 @@ const photos_router = require('./photos_router');
const solardata = require('./solardata');
const maxmind = require('maxmind');
const cronjobs = require('./cronjobs');
const moment = require('moment');
let geoLookup;
import('geolite2-redist').then((geolite2) => {
@ -341,14 +340,4 @@ app.get('/my_country', (req, res) => {
}
});
app.post('/mapsession', (req, res) => {
let type = req.body.type;
if (!type) {
type = 'unknown';
}
let date = moment().format('YYYY-MM-DD');
db.getDb().collection('mapsessions').updateOne({date, type}, {"$inc": {"count": 1}}, {upsert: true});
res.json({});
});
app.listen(config.http.port, config.http.host);