fix(core): update
This commit is contained in:
		@@ -22,9 +22,11 @@ export class RegistryCache {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public async cacheSmartFile (fileIdArg: string, smartfileArg: plugins.smartfile.Smartfile) {
 | 
			
		||||
    await this.levelCache.storeCacheEntryByKey(fileIdArg, new plugins.levelcache.CacheEntry({
 | 
			
		||||
      contents: Buffer.from(smartfileArg.foldToJson()),
 | 
			
		||||
      ttl: 60000
 | 
			
		||||
    }));
 | 
			
		||||
    if (smartfileArg) {
 | 
			
		||||
      await this.levelCache.storeCacheEntryByKey(fileIdArg, new plugins.levelcache.CacheEntry({
 | 
			
		||||
        contents: Buffer.from(smartfileArg.foldToJson()),
 | 
			
		||||
        ttl: 60000
 | 
			
		||||
      }));
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user