From c9d5c64f98c1f1fe7950de60c58edeaf3ace070d Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 27 Aug 2018 13:28:49 +0200 Subject: replace fs by fs-extra to prevent EMFILE error --- server/controllers/static.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 2a92810f3..6e8f1a07f 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -1,5 +1,5 @@ import * as cors from 'cors' -import { createReadStream } from 'fs' +import { createReadStream } from 'fs-extra' import * as express from 'express' import { CONFIG, STATIC_DOWNLOAD_PATHS, STATIC_MAX_AGE, STATIC_PATHS, ROUTE_CACHE_LIFETIME } from '../initializers' import { VideosPreviewCache } from '../lib/cache' -- cgit v1.2.3