Skip to content

Commit

Permalink
Uncommenting out code
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Aug 24, 2022
1 parent 96103da commit 5d2e455
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ class HeapStash {

if (!settings.internalCacheOnly) {
primaryDebugPut(`Storing item in plugins: ${JSON.stringify(storedObject)}`);
// if (settings.pluginTTL !== undefined && settings.pluginTTL !== ttlToUse) {
// if (settings.pluginTTL === false) {
// primaryDebugPut("Deleting ttl for plugin storage.");
// delete storedObject.ttl;
// } else {
// primaryDebugPut(`Setting ttl to ${settings.pluginTTL} for plugin storage.`);
// storedObject.ttl = settings.pluginTTL;
// }
// }
if (settings.pluginTTL !== undefined && settings.pluginTTL !== ttlToUse) {
if (settings.pluginTTL === false) {
primaryDebugPut("Deleting ttl for plugin storage.");
delete storedObject.ttl;
} else {
primaryDebugPut(`Setting ttl to ${settings.pluginTTL} for plugin storage.`);
storedObject.ttl = settings.pluginTTL;
}
}
await Promise.all(this.plugins.map((plugin) => plugin.run("put")(id, storedObject)));
primaryDebugPut("Done storing item in plugins.");
} else {
Expand Down

0 comments on commit 5d2e455

Please sign in to comment.