]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/decache.ts
Refactor table attributes
[github/Chocobozzz/PeerTube.git] / server / helpers / decache.ts
index e31973b7a61cb5b00b1c7c2c0bb729f1e1a7d8ac..08ab545e42aab664d479bdf87163467f98cbc74d 100644 (file)
@@ -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)) {