From abc57471fa3a73cb7a1ae7f2d2bd94f94027421e Mon Sep 17 00:00:00 2001 From: tycrek Date: Thu, 1 Jul 2021 11:22:39 -0600 Subject: [PATCH] replaced " with ' --- ass.js | 6 +++--- routers/upload.js | 4 ++-- setup.js | 2 +- utils.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ass.js b/ass.js index 4538805..2117d67 100755 --- a/ass.js +++ b/ass.js @@ -12,8 +12,8 @@ const { host, port, useSsl, diskFilePath, isProxied } = require('./config.json') //#region Imports const fs = require('fs-extra'); const express = require('express'); -const helmet = require("helmet"); -const rateLimit = require("express-rate-limit"); +const helmet = require('helmet'); +const rateLimit = require('express-rate-limit'); const uploadRouter = require('./routers/upload'); const resourceRouter = require('./routers/resource'); const { path, log, generateToken } = require('./utils'); @@ -65,7 +65,7 @@ function preStartup() { function startup() { // Enable/disable Express features app.enable('case sensitive routing'); - app.disable("x-powered-by"); + app.disable('x-powered-by'); // Set Express variables app.set('trust proxy', isProxied); diff --git a/routers/upload.js b/routers/upload.js index 8fdd6ac..b68c134 100644 --- a/routers/upload.js +++ b/routers/upload.js @@ -35,8 +35,8 @@ router.use('/', (err, _req, res, next) => err.code && err.code === 'LIMIT_FILE_S // Process uploaded file router.post('/', (req, res) => { // Load overrides - const trueDomain = getTrueDomain(req.headers["x-ass-domain"]); - const generator = req.headers["x-ass-access"] || resourceIdType; + const trueDomain = getTrueDomain(req.headers['x-ass-domain']); + const generator = req.headers['x-ass-access'] || resourceIdType; // Get the uploaded time in milliseconds req.file.timestamp = DateTime.now().toMillis(); diff --git a/setup.js b/setup.js index 30a170a..81bf006 100755 --- a/setup.js +++ b/setup.js @@ -9,7 +9,7 @@ const config = { resourceIdSize: 12, gfyIdSize: 2, resourceIdType: 'zws', - diskFilePath: "uploads/", + diskFilePath: 'uploads/', saveWithDate: false, saveAsOriginal: true, s3enabled: false, diff --git a/utils.js b/utils.js index df2dadd..b234fac 100755 --- a/utils.js +++ b/utils.js @@ -33,7 +33,7 @@ function getDirectUrl(resourceId) { } function randomHexColour() { // From: https://www.geeksforgeeks.org/javascript-generate-random-hex-codes-color/ - const letters = "0123456789ABCDEF"; + const letters = '0123456789ABCDEF'; let colour = '#'; for (let i = 0; i < 6; i++) // skipcq: JS-0074 colour += letters[(Math.floor(Math.random() * letters.length))];