mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 21:47:10 -04:00
Server side code don't need a Meteor.call
This commit is contained in:
parent
344aeb4051
commit
ea5025595a
1 changed files with 2 additions and 2 deletions
|
@ -192,13 +192,13 @@ if (Meteor.isServer) {
|
|||
check(fileObjId, String);
|
||||
check(storageDestination, String);
|
||||
|
||||
Meteor.call('validateAttachment', fileObjId);
|
||||
validateAttachment(fileObjId);
|
||||
|
||||
const fileObj = Attachments.findOne({_id: fileObjId});
|
||||
|
||||
if (fileObj) {
|
||||
console.debug("Validation of uploaded file completed: file " + fileObj.path + " - storage destination " + storageDestination);
|
||||
Meteor.defer(() => Meteor.call('moveAttachmentToStorage', fileObjId, storageDestination));
|
||||
moveAttachmentToStorage(fileObjId, storageDestination);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue