X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fhelpers%2Fdecache.ts;h=08ab545e42aab664d479bdf87163467f98cbc74d;hb=eb66ee88351a93eb68c366cfbe30d35ed7c57b03;hp=e31973b7a61cb5b00b1c7c2c0bb729f1e1a7d8ac;hpb=0a8a79552cf59c800011c9f63eaa8658230acddc;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/decache.ts b/server/helpers/decache.ts index e31973b7a..08ab545e4 100644 --- a/server/helpers/decache.ts +++ b/server/helpers/decache.ts @@ -68,7 +68,7 @@ function searchCache (moduleName: string, callback: (current: NodeModule) => voi }; function removeCachedPath (pluginPath: string) { - const pathCache = (module.constructor as any)._pathCache + const pathCache = (module.constructor as any)._pathCache as { [ id: string ]: string[] } Object.keys(pathCache).forEach(function (cacheKey) { if (cacheKey.includes(pluginPath)) {