diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-08-27 13:28:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 16:03:57 +0200 |
commit | c9d5c64f98c1f1fe7950de60c58edeaf3ace070d (patch) | |
tree | 26d828e560054cf8a64628823d3dd86172d44f52 /server/controllers/static.ts | |
parent | 0ee027347ae09ea397e9b85702707e9179537ebd (diff) | |
download | PeerTube-c9d5c64f98c1f1fe7950de60c58edeaf3ace070d.tar.gz PeerTube-c9d5c64f98c1f1fe7950de60c58edeaf3ace070d.tar.zst PeerTube-c9d5c64f98c1f1fe7950de60c58edeaf3ace070d.zip |
replace fs by fs-extra to prevent EMFILE error
Diffstat (limited to 'server/controllers/static.ts')
-rw-r--r-- | server/controllers/static.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
1 | import * as cors from 'cors' | 1 | import * as cors from 'cors' |
2 | import { createReadStream } from 'fs' | 2 | import { createReadStream } from 'fs-extra' |
3 | import * as express from 'express' | 3 | import * as express from 'express' |
4 | import { CONFIG, STATIC_DOWNLOAD_PATHS, STATIC_MAX_AGE, STATIC_PATHS, ROUTE_CACHE_LIFETIME } from '../initializers' | 4 | import { CONFIG, STATIC_DOWNLOAD_PATHS, STATIC_MAX_AGE, STATIC_PATHS, ROUTE_CACHE_LIFETIME } from '../initializers' |
5 | import { VideosPreviewCache } from '../lib/cache' | 5 | import { VideosPreviewCache } from '../lib/cache' |