From 71de7dc3d58dd0148e6b69b56861caf14b431aca Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Fri, 1 Apr 2022 21:52:11 +0200 Subject: [PATCH] feat(mongoose): @tsed/mongoose need mongoose v6 as minimal version --- packages/platform/common/src/services/PlatformResponse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/platform/common/src/services/PlatformResponse.ts b/packages/platform/common/src/services/PlatformResponse.ts index e98190cfcc3..db3b5239ecd 100644 --- a/packages/platform/common/src/services/PlatformResponse.ts +++ b/packages/platform/common/src/services/PlatformResponse.ts @@ -1,10 +1,10 @@ import {isBoolean, isNumber, isStream, isString} from "@tsed/core"; import {Injectable, ProviderScope, Scope} from "@tsed/di"; import {ServerResponse} from "http"; +import onFinished from "on-finished"; import {IncomingEvent} from "../interfaces/IncomingEvent"; import type {PlatformRequest} from "./PlatformRequest"; import type {PlatformContext} from "../domain/PlatformContext"; -import onFinished from "on-finished"; declare global { namespace TsED { @@ -229,7 +229,7 @@ export class PlatformResponse = any> { * * @param data */ - stream(data: ReadableStream | any) { + stream(data: any) { data.pipe(this.raw); return this;