mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Revert some migration filename changes.
Thanks to xet7 !
This commit is contained in:
parent
14bd59a101
commit
3300bbe9e7
1 changed files with 4 additions and 2 deletions
|
|
@ -1254,7 +1254,8 @@ Migrations.add('migrate-attachments-collectionFS-to-ostrioFiles', () => {
|
|||
// const filePath = path.join(storagePath, `${fileObj._id}-${newFileName}`);
|
||||
// NEW: Save file only with filename of ObjectID, not including filename.
|
||||
// Fixes https://github.com/wekan/wekan/issues/4416#issuecomment-1510517168
|
||||
const filePath = path.join(storagePath, `${fileObj._id}`);
|
||||
//const filePath = path.join(storagePath, `${fileObj._id}`);
|
||||
const filePath = path.join(storagePath, `${fileObj._id}-${newFileName}`);
|
||||
|
||||
// This is "example" variable, change it to the userId that you might be using.
|
||||
const userId = fileObj.userId;
|
||||
|
|
@ -1326,7 +1327,8 @@ Migrations.add('migrate-avatars-collectionFS-to-ostrioFiles', () => {
|
|||
// const filePath = path.join(storagePath, `${fileObj._id}-${newFileName}`);
|
||||
// NEW: Save file only with filename of ObjectID, not including filename.
|
||||
// Fixes https://github.com/wekan/wekan/issues/4416#issuecomment-1510517168
|
||||
const filePath = path.join(storagePath, `${fileObj._id}`);
|
||||
//const filePath = path.join(storagePath, `${fileObj._id}`);
|
||||
const filePath = path.join(storagePath, `${fileObj._id}-${newFileName}`);
|
||||
|
||||
// This is "example" variable, change it to the userId that you might be using.
|
||||
const userId = fileObj.userId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue