X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fdecache.ts;h=08ab545e42aab664d479bdf87163467f98cbc74d;hb=cffef25313bdf7a6c435f56ac6715fdd91acf7b3;hp=e31973b7a61cb5b00b1c7c2c0bb729f1e1a7d8ac;hpb=d1a233d8d86ead1e3aa2350d5480eab3336b17d6;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)) {