mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Added more descriptive times of attachment migrations and uploads.
Thanks to xet7 ! Related https://github.com/wekan/wekan/issues/4891
This commit is contained in:
parent
aff94a6770
commit
f11650ece1
2 changed files with 3 additions and 1 deletions
|
|
@ -91,6 +91,7 @@ Attachments = new FilesCollection({
|
||||||
});
|
});
|
||||||
|
|
||||||
Attachments.update({ _id: fileObj._id }, { $set: { "versions" : fileObj.versions } });
|
Attachments.update({ _id: fileObj._id }, { $set: { "versions" : fileObj.versions } });
|
||||||
|
Attachments.update({ _id: fileObj.uploadedAtOstrio }, { $set: { "uploadedAtOstrio" : this._now() } });
|
||||||
|
|
||||||
let storageDestination = fileObj.meta.copyStorage || STORAGE_NAME_GRIDFS;
|
let storageDestination = fileObj.meta.copyStorage || STORAGE_NAME_GRIDFS;
|
||||||
Meteor.defer(() => Meteor.call('validateAttachmentAndMoveToStorage', fileObj._id, storageDestination));
|
Meteor.defer(() => Meteor.call('validateAttachmentAndMoveToStorage', fileObj._id, storageDestination));
|
||||||
|
|
|
||||||
|
|
@ -1281,7 +1281,8 @@ Migrations.add('migrate-attachments-collectionFS-to-ostrioFiles', () => {
|
||||||
cardId: fileObj.cardId,
|
cardId: fileObj.cardId,
|
||||||
listId: fileObj.listId,
|
listId: fileObj.listId,
|
||||||
swimlaneId: fileObj.swimlaneId,
|
swimlaneId: fileObj.swimlaneId,
|
||||||
uploadedAt: fileObj.uploadedAt,
|
uploadedBeforeMigration: fileObj.uploadedAt,
|
||||||
|
migrationTime: this.now(),
|
||||||
copies: fileObj.copies,
|
copies: fileObj.copies,
|
||||||
source: 'import'
|
source: 'import'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue