@ztimson/utils 0.26.3 → 0.26.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -479,7 +479,7 @@ class Cache {
479
479
  if (((_a = persists.storage) == null ? void 0 : _a.constructor.name) == "Database") {
480
480
  persists.storage.createTable({ name: persists.key, key: this.key }).then((table) => {
481
481
  if (key) {
482
- table.set(key, this.get(key));
482
+ table.set(this.get(key), key);
483
483
  } else {
484
484
  table.clear();
485
485
  this.all().forEach((row) => table.add(row));