mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 05:57:13 -04:00
Fix Exception in callback of async function: TypeError: this._now is not a function.
Thanks to xet7 !
This commit is contained in:
parent
5034c957ba
commit
aeb0f1e6d8
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ Attachments = new FilesCollection({
|
|||
fileObj.versions[versionName].storage = STORAGE_NAME_FILESYSTEM;
|
||||
});
|
||||
|
||||
this._now = new Date();
|
||||
Attachments.update({ _id: fileObj._id }, { $set: { "versions" : fileObj.versions } });
|
||||
Attachments.update({ _id: fileObj.uploadedAtOstrio }, { $set: { "uploadedAtOstrio" : this._now() } });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue