From 943c5a63ad69815bbac4e754797b39690d279ea6 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Thu, 4 Mar 2021 10:59:34 -0500 Subject: [PATCH] clean up --- account/server/config/passport-strategies/twitter.js | 3 +-- account/server/config/passport.js | 1 - backend/index.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/account/server/config/passport-strategies/twitter.js b/account/server/config/passport-strategies/twitter.js index 68a4039..88e12a6 100644 --- a/account/server/config/passport-strategies/twitter.js +++ b/account/server/config/passport-strategies/twitter.js @@ -4,8 +4,7 @@ const User = require("../../models/user"); const twitter = new Strategy({ consumerKey: process.env['TWITTER_CONSUMER_KEY'], consumerSecret: process.env['TWITTER_CONSUMER_SECRET'], - callbackURL: '/oauth/callback', - proxy: trustProxy + callbackURL: '/oauth/callback' }, function(token, tokenSecret, profile, cb) { // In this example, the user's Twitter profile is supplied as the user diff --git a/account/server/config/passport.js b/account/server/config/passport.js index 74c917e..ea3b8d9 100644 --- a/account/server/config/passport.js +++ b/account/server/config/passport.js @@ -1,7 +1,6 @@ /* Initializing PassportJS */ const User = require("../models/user"); const local = require("./passport-strategies/local"); -const twitter = require("./passport-strategies/twitter"); module.exports = function (app, passport) { // Configure Passport authenticated session persistence. diff --git a/backend/index.js b/backend/index.js index 670efa9..6c3745e 100644 --- a/backend/index.js +++ b/backend/index.js @@ -176,7 +176,7 @@ app.post('/:shortName/star/:id', calls.add_star, function(req,res) { /*------ UPLOADS ---------- upload.single('call'), uploads.upload,*/ app.post('/:shortName/upload', upload.single('call'), uploads.upload, async function(req,res) { notify_clients(req.call); - if ((req.call.shortName=="dcfd") && (req.call.talkgroupNum==101)) { + if ((req.call.shortName=="dcfd") && (req.call.talkgroupNum==101) ) { var call_time = new Date(req.call.time); var call_link = "https://openmhz.com/system/dcfd?call-id=" + req.call._id + "&time=" + call_time.getTime();