aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes')
-rw-r--r--src/api/routes/albums/albumPOST.js4
-rw-r--r--src/api/routes/files/uploadPOST.js4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/api/routes/albums/albumPOST.js b/src/api/routes/albums/albumPOST.js
index 24ccca8..c2e7c4e 100644
--- a/src/api/routes/albums/albumPOST.js
+++ b/src/api/routes/albums/albumPOST.js
@@ -15,7 +15,7 @@ class albumPOST extends Route {
const album = await db.table('albums').where({
name,
- enabled: true,
+ // enabled: true,
userId: user.id
}).first();
@@ -31,7 +31,7 @@ class albumPOST extends Route {
*/
await db.table('albums').insert({
name,
- enabled: true,
+ // enabled: true,
userId: user.id,
createdAt: now,
editedAt: now
diff --git a/src/api/routes/files/uploadPOST.js b/src/api/routes/files/uploadPOST.js
index e152ac8..9ecf7ee 100644
--- a/src/api/routes/files/uploadPOST.js
+++ b/src/api/routes/files/uploadPOST.js
@@ -41,8 +41,10 @@ class uploadPOST extends Route {
if (!album) return res.status(401).json({ message: 'Album doesn\'t exist or it doesn\'t belong to the user' });
}
+ /*
if (!albumId) log.info('Incoming file');
else log.info(`Incoming file for album ${albumId}`);
+ */
let upload = file.data;
/*
@@ -167,7 +169,7 @@ class uploadPOST extends Route {
If exif removal has been force service-wide or requested by the user, remove it
*/
if (config.uploads.forceStripExif) { // || user.settings.stripExif) {
- Util.removeExif(upload.filename);
+ // Util.removeExif(upload.filename);
}
/*