diff --git a/lib/manager/VirtualStoredFSManager.d.ts b/lib/manager/VirtualStoredFSManager.d.ts index cd4aff04..ea7a4178 100644 --- a/lib/manager/VirtualStoredFSManager.d.ts +++ b/lib/manager/VirtualStoredFSManager.d.ts @@ -23,8 +23,8 @@ export declare abstract class VirtualStoredContentManager implements IVirtualSto allocate(options: any, callback: ReturnCallback): any; } export interface IVirtualStoredContentManagerMiddleware { - readStream(stream: Readable, callback: (stream: Readable) => void): any; - writeStream(stream: Writable, callback: (stream: Writable) => void): any; + readStream(uid: string, stream: Readable, callback: (stream: Readable) => void): any; + writeStream(uid: string, stream: Writable, callback: (stream: Writable) => void): any; } export declare class SimpleVirtualStoredContentManager extends VirtualStoredContentManager { storeFolderPath: string; diff --git a/lib/manager/VirtualStoredFSManager.js b/lib/manager/VirtualStoredFSManager.js index 7293eaaf..26895217 100644 --- a/lib/manager/VirtualStoredFSManager.js +++ b/lib/manager/VirtualStoredFSManager.js @@ -76,7 +76,7 @@ var SimpleVirtualStoredContentManager = (function (_super) { if (!_this.middleware) callback(null, stream); else - _this.middleware.readStream(stream, function (s) { return callback(null, s); }); + _this.middleware.readStream(contentUid, stream, function (s) { return callback(null, s); }); } }); }; @@ -91,7 +91,7 @@ var SimpleVirtualStoredContentManager = (function (_super) { if (!_this.middleware) callback(null, stream); else - _this.middleware.writeStream(stream, function (s) { return callback(null, s); }); + _this.middleware.writeStream(contentUid, stream, function (s) { return callback(null, s); }); } }); }; diff --git a/src/manager/VirtualStoredFSManager.ts b/src/manager/VirtualStoredFSManager.ts index f281c906..96e267ee 100644 --- a/src/manager/VirtualStoredFSManager.ts +++ b/src/manager/VirtualStoredFSManager.ts @@ -56,8 +56,8 @@ export abstract class VirtualStoredContentManager implements IVirtualStoredConte export interface IVirtualStoredContentManagerMiddleware { - readStream(stream : Readable, callback : (stream : Readable) => void); - writeStream(stream : Writable, callback : (stream : Writable) => void); + readStream(uid : string, stream : Readable, callback : (stream : Readable) => void); + writeStream(uid : string, stream : Writable, callback : (stream : Writable) => void); } export class SimpleVirtualStoredContentManager extends VirtualStoredContentManager @@ -109,7 +109,7 @@ export class SimpleVirtualStoredContentManager extends VirtualStoredContentManag if(!this.middleware) callback(null, stream); else - this.middleware.readStream(stream, (s) => callback(null, s)); + this.middleware.readStream(contentUid, stream, (s) => callback(null, s)); } }) } @@ -127,7 +127,7 @@ export class SimpleVirtualStoredContentManager extends VirtualStoredContentManag if(!this.middleware) callback(null, stream); else - this.middleware.writeStream(stream, (s) => callback(null, s)); + this.middleware.writeStream(contentUid, stream, (s) => callback(null, s)); } }) }