mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-02-05 06:46:27 -06:00
fix: buildkey function in hSet and hDelete
This commit is contained in:
Vendored
+2
-2
@@ -73,7 +73,7 @@ export class LocalCache implements ICache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hash[field] = json;
|
hash[field] = json;
|
||||||
LocalCache.localCache.set(key, hash);
|
LocalCache.localCache.set(this.buildKey(key), hash);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.error(error);
|
this.logger.error(error);
|
||||||
@@ -86,7 +86,7 @@ export class LocalCache implements ICache {
|
|||||||
|
|
||||||
if (data && field in data) {
|
if (data && field in data) {
|
||||||
delete data[field];
|
delete data[field];
|
||||||
LocalCache.localCache.set(key, data);
|
LocalCache.localCache.set(this.buildKey(key), data);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user