mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Show console.log 'Legacy attachments route loaded' only when environment variable DEBUG=true.
Thanks to xet7 !
This commit is contained in:
parent
2c73dae019
commit
1c84b19f24
1 changed files with 3 additions and 1 deletions
|
|
@ -4,7 +4,9 @@ import { ReactiveCache } from '/imports/reactiveCache';
|
|||
import { getAttachmentWithBackwardCompatibility, getOldAttachmentStream } from '/models/lib/attachmentBackwardCompatibility';
|
||||
|
||||
// Ensure this file is loaded
|
||||
if (process.env.DEBUG === 'true') {
|
||||
console.log('Legacy attachments route loaded');
|
||||
}
|
||||
|
||||
/**
|
||||
* Legacy attachment download route for CollectionFS compatibility
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue