mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Cards.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
48ba81eb3d
commit
06e374f0ff
6 changed files with 11 additions and 11 deletions
|
|
@ -696,7 +696,7 @@ export const moveToStorage = function(fileObj, storageDestination, fileStoreStra
|
|||
};
|
||||
|
||||
export const copyFile = function(fileObj, newCardId, fileStoreStrategyFactory) {
|
||||
const newCard = Cards.findOne(newCardId);
|
||||
const newCard = ReactiveCache.getCard(newCardId);
|
||||
Object.keys(fileObj.versions).forEach(versionName => {
|
||||
const strategyRead = fileStoreStrategyFactory.getFileStrategy(fileObj, versionName);
|
||||
const readStream = strategyRead.getReadStream();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue