diff options
| author | Pitu <[email protected]> | 2020-06-25 02:05:48 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-06-25 02:05:48 +0900 |
| commit | f189ddf9e6e1dda0c8e56afd367bc378ee19b8fd (patch) | |
| tree | f9b81c236ace8958768a8f134a530396638cfc33 /src/api/routes/albums | |
| parent | Update error message (diff) | |
| download | host.fuwn.me-f189ddf9e6e1dda0c8e56afd367bc378ee19b8fd.tar.xz host.fuwn.me-f189ddf9e6e1dda0c8e56afd367bc378ee19b8fd.zip | |
Cleanup
Diffstat (limited to 'src/api/routes/albums')
| -rw-r--r-- | src/api/routes/albums/albumsGET.js | 3 |
1 files changed, 0 insertions, 3 deletions
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) |