mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
FileStoreStrategy, moveToStorage, wrong variable in error handling
This commit is contained in:
parent
567be456be
commit
58d760a615
1 changed files with 2 additions and 2 deletions
|
|
@ -312,11 +312,11 @@ export const moveToStorage = function(fileObj, storageDestination, fileStoreStra
|
|||
const writeStream = strategyWrite.getWriteStream(filePath);
|
||||
|
||||
writeStream.on('error', error => {
|
||||
console.error('[writeStream error]: ', error, fileObjId);
|
||||
console.error('[writeStream error]: ', error, fileObj._id);
|
||||
});
|
||||
|
||||
readStream.on('error', error => {
|
||||
console.error('[readStream error]: ', error, fileObjId);
|
||||
console.error('[readStream error]: ', error, fileObj._id);
|
||||
});
|
||||
|
||||
writeStream.on('finish', Meteor.bindEnvironment((finishedData) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue