🐛 fix: #84 Correct cache save

This commit is contained in:
Nathan Smith 2024-04-06 13:55:34 -04:00
parent 40aff6125a
commit 807d604a1d

View file

@ -76,7 +76,7 @@ export class GithubLinkPlugin extends Plugin {
logger.debug("Checking if cache needs a save.");
if (cache.cacheUpdated) {
PluginData.cache = cache.toJSON();
await this.saveData(PluginSettings);
await this.saveData(PluginData);
cache.cacheUpdated = false;
logger.info(`Saved request cache with ${PluginData.cache?.length} items.`);
}