Links are managed elsewhere, so there's no point in this
This commit is contained in:
parent
5560f69896
commit
9001133414
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue