We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d8dde3 commit 2803f49Copy full SHA for 2803f49
.changeset/weak-deer-pick.md
@@ -0,0 +1,5 @@
1
+---
2
+"@squarecloud/api": patch
3
4
+
5
+Fix cache not being updated.
src/services/cache/base.ts
@@ -1,11 +1,11 @@
-export class BaseCacheService<
+export abstract class BaseCacheService<
Struct extends object,
Keys extends keyof Struct = keyof Struct,
> {
protected cache: Struct;
6
7
set<T extends Keys>(key: T, value: Struct[T]) {
8
- Reflect.set(this, key, value);
+ Reflect.set(this.cache, key, value);
9
}
10
11
get<T extends Keys>(key: T): Struct[T] {
0 commit comments