aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-03-14 23:14:24 +0900
committerPitu <[email protected]>2019-03-14 23:14:24 +0900
commit79eb00f71cc18dbb195a29bd79871d35176f33d1 (patch)
treea73c918ab74a76e54941cb801d157b055537a7b5 /src
parentAdd uuid package (diff)
downloadhost.fuwn.me-79eb00f71cc18dbb195a29bd79871d35176f33d1.tar.xz
host.fuwn.me-79eb00f71cc18dbb195a29bd79871d35176f33d1.zip
Small fixes
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/admin/userDisable.js2
-rw-r--r--src/api/routes/admin/userEnable.js2
-rw-r--r--src/api/routes/admin/userPromote.js2
-rw-r--r--src/api/routes/albums/albumFullGET.js2
-rw-r--r--src/site/pages/dashboard/albums/index.vue2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/api/routes/admin/userDisable.js b/src/api/routes/admin/userDisable.js
index 65bcf4e..e39c811 100644
--- a/src/api/routes/admin/userDisable.js
+++ b/src/api/routes/admin/userDisable.js
@@ -5,7 +5,7 @@ class userDisable extends Route {
super('/admin/users/disable', 'post', { adminOnly: true });
}
- async run(req, res, db) {
+ async run(req, res, db, user) {
if (!req.body) return res.status(400).json({ message: 'No body provided' });
const { id } = req.body;
if (!id) return res.status(400).json({ message: 'No id provided' });
diff --git a/src/api/routes/admin/userEnable.js b/src/api/routes/admin/userEnable.js
index bdba7a6..cff622f 100644
--- a/src/api/routes/admin/userEnable.js
+++ b/src/api/routes/admin/userEnable.js
@@ -5,7 +5,7 @@ class userEnable extends Route {
super('/admin/users/enable', 'post', { adminOnly: true });
}
- async run(req, res, db) {
+ async run(req, res, db, user) {
if (!req.body) return res.status(400).json({ message: 'No body provided' });
const { id } = req.body;
if (!id) return res.status(400).json({ message: 'No id provided' });
diff --git a/src/api/routes/admin/userPromote.js b/src/api/routes/admin/userPromote.js
index 6534d16..4a5ed88 100644
--- a/src/api/routes/admin/userPromote.js
+++ b/src/api/routes/admin/userPromote.js
@@ -5,7 +5,7 @@ class userPromote extends Route {
super('/admin/users/promote', 'post', { adminOnly: true });
}
- async run(req, res, db) {
+ async run(req, res, db, user) {
if (!req.body) return res.status(400).json({ message: 'No body provided' });
const { id } = req.body;
if (!id) return res.status(400).json({ message: 'No id provided' });
diff --git a/src/api/routes/albums/albumFullGET.js b/src/api/routes/albums/albumFullGET.js
index 629f57a..f92f9ae 100644
--- a/src/api/routes/albums/albumFullGET.js
+++ b/src/api/routes/albums/albumFullGET.js
@@ -6,7 +6,7 @@ class albumGET extends Route {
super('/album/:id/full', 'get');
}
- async run(req, res, db) {
+ async run(req, res, db, user) {
const { id } = req.params;
if (!id) return res.status(400).json({ message: 'Invalid id supplied' });
diff --git a/src/site/pages/dashboard/albums/index.vue b/src/site/pages/dashboard/albums/index.vue
index 679eb8c..1ad7653 100644
--- a/src/site/pages/dashboard/albums/index.vue
+++ b/src/site/pages/dashboard/albums/index.vue
@@ -189,7 +189,7 @@
</div>
<div v-if="album.fileCount > 5"
class="thumb more no-background">
- <router-link :to="`/dashboard/albums/${album.uuid}`">{{ album.fileCount - 5 }}+ more</router-link>
+ <router-link :to="`/dashboard/albums/${album.id}`">{{ album.fileCount - 5 }}+ more</router-link>
</div>
</template>
<template v-else>