aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/albums/albumGET.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-01-20 14:09:06 +0900
committerPitu <[email protected]>2021-01-20 14:09:06 +0900
commita3bf693d30d3c1c1d9e4073830522554c3f1c4e8 (patch)
treec1902391d0eb2f059030c2c41a08f91422d80eed /src/api/routes/albums/albumGET.js
parentfeat: enable ssr and serve it with the api (diff)
downloadhost.fuwn.me-a3bf693d30d3c1c1d9e4073830522554c3f1c4e8.tar.xz
host.fuwn.me-a3bf693d30d3c1c1d9e4073830522554c3f1c4e8.zip
chore: switch to asyncData where needed
Diffstat (limited to 'src/api/routes/albums/albumGET.js')
-rw-r--r--src/api/routes/albums/albumGET.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/albums/albumGET.js b/src/api/routes/albums/albumGET.js
index 3949fc7..4ac7089 100644
--- a/src/api/routes/albums/albumGET.js
+++ b/src/api/routes/albums/albumGET.js
@@ -25,7 +25,7 @@ class albumGET extends Route {
.select('files.name', 'files.id')
.orderBy('files.id', 'desc');
- const { page, limit = 100 } = req.query;
+ const { page, limit = 50 } = req.query;
if (page && page >= 0) {
files = await files.offset((page - 1) * limit).limit(limit);