Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
71552aa243 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@ztimson/utils",
|
||||
"version": "0.26.3",
|
||||
"version": "0.26.4",
|
||||
"description": "Utility library",
|
||||
"author": "Zak Timson",
|
||||
"license": "MIT",
|
||||
|
@ -80,7 +80,7 @@ export class Cache<K extends string | number | symbol, T> {
|
||||
if(persists.storage?.constructor.name == 'Database') {
|
||||
(<Database>persists.storage).createTable({name: persists.key, key: <string>this.key}).then(table => {
|
||||
if(key) {
|
||||
table.set(key, this.get(key));
|
||||
table.set(this.get(key), key);
|
||||
} else {
|
||||
table.clear();
|
||||
this.all().forEach(row => table.add(row));
|
||||
|
Reference in New Issue
Block a user