mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Fix Exception in callback of async function: TypeError: this._now is not a function. Part 2.
Thanks to xet7 !
This commit is contained in:
parent
0d4ec25593
commit
aef6967d4c
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ Attachments = new FilesCollection({
|
|||
|
||||
this._now = new Date();
|
||||
Attachments.update({ _id: fileObj._id }, { $set: { "versions" : fileObj.versions } });
|
||||
Attachments.update({ _id: fileObj.uploadedAtOstrio }, { $set: { "uploadedAtOstrio" : this._now() } });
|
||||
Attachments.update({ _id: fileObj.uploadedAtOstrio }, { $set: { "uploadedAtOstrio" : this._now } });
|
||||
|
||||
let storageDestination = fileObj.meta.copyStorage || STORAGE_NAME_GRIDFS;
|
||||
Meteor.defer(() => Meteor.call('validateAttachmentAndMoveToStorage', fileObj._id, storageDestination));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue