fixed injection of document into packer

This commit is contained in:
Dolan Miu
2016-03-31 23:36:42 +01:00
parent b828d682d3
commit d0fb6f485d
5 changed files with 19 additions and 9 deletions

View File

@ -1,12 +1,13 @@
import {Packer} from "./packer";
import * as fs from "fs";
import * as express from "express";
import {Document} from "../../docx/document";
export class ExpressPacker extends Packer {
private res: express.Response;
constructor(res: express.Response) {
super();
constructor(document: Document, res: express.Response) {
super(document);
this.res = res;
this.res.on('close', () => {