From f189ddf9e6e1dda0c8e56afd367bc378ee19b8fd Mon Sep 17 00:00:00 2001 From: Pitu Date: Thu, 25 Jun 2020 02:05:48 +0900 Subject: Cleanup --- src/api/routes/albums/albumsGET.js | 3 --- src/api/structures/Route.js | 1 - src/site/pages/a/_identifier.vue | 17 +++-------------- 3 files changed, 3 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/api/routes/albums/albumsGET.js b/src/api/routes/albums/albumsGET.js index bbaa518..1a7db87 100644 --- a/src/api/routes/albums/albumsGET.js +++ b/src/api/routes/albums/albumsGET.js @@ -19,9 +19,6 @@ class albumsGET extends Route { for (const album of albums) { // TODO: Optimize the shit out of this. Ideally a JOIN that grabs all the needed stuff in 1 query instead of 3 - // Fetch every public link the album has - // const links = await db.table('links').where('albumId', album.id); // eslint-disable-line no-await-in-loop - // Fetch the total amount of files each album has. const fileCount = await db.table('albumsFiles') // eslint-disable-line no-await-in-loop .where('albumId', album.id) diff --git a/src/api/structures/Route.js b/src/api/structures/Route.js index 23a3522..8956c24 100644 --- a/src/api/structures/Route.js +++ b/src/api/structures/Route.js @@ -40,7 +40,6 @@ const db = require('knex')({ }); const moment = require('moment'); const log = require('../utils/Log'); -const bcrypt = require('bcrypt'); class Route { constructor(path, method, options) { diff --git a/src/site/pages/a/_identifier.vue b/src/site/pages/a/_identifier.vue index 62035b3..ea36852 100644 --- a/src/site/pages/a/_identifier.vue +++ b/src/site/pages/a/_identifier.vue @@ -1,7 +1,5 @@