Links are managed elsewhere, so there's no point in this

This commit is contained in:
Pitu 2018-09-16 05:42:38 -03:00
parent 5560f69896
commit 9001133414
2 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class albumPOST extends Route {
const album = await db.table('albums').where({ const album = await db.table('albums').where({
name, name,
enabled: true, // enabled: true,
userId: user.id userId: user.id
}).first(); }).first();
@ -31,7 +31,7 @@ class albumPOST extends Route {
*/ */
await db.table('albums').insert({ await db.table('albums').insert({
name, name,
enabled: true, // enabled: true,
userId: user.id, userId: user.id,
createdAt: now, createdAt: now,
editedAt: now editedAt: now

View File

@ -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 (!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'); if (!albumId) log.info('Incoming file');
else log.info(`Incoming file for album ${albumId}`); else log.info(`Incoming file for album ${albumId}`);
*/
let upload = file.data; 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 exif removal has been force service-wide or requested by the user, remove it
*/ */
if (config.uploads.forceStripExif) { // || user.settings.stripExif) { if (config.uploads.forceStripExif) { // || user.settings.stripExif) {
Util.removeExif(upload.filename); // Util.removeExif(upload.filename);
} }
/* /*