mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
fix: buildkey function in hSet and hDelete
This commit is contained in:
parent
0ad330bdb3
commit
49327593a9
4
src/cache/localcache.ts
vendored
4
src/cache/localcache.ts
vendored
@ -73,7 +73,7 @@ export class LocalCache implements ICache {
|
||||
}
|
||||
|
||||
hash[field] = json;
|
||||
LocalCache.localCache.set(key, hash);
|
||||
LocalCache.localCache.set(this.buildKey(key), hash);
|
||||
|
||||
} catch (error) {
|
||||
this.logger.error(error);
|
||||
@ -86,7 +86,7 @@ export class LocalCache implements ICache {
|
||||
|
||||
if (data && field in data) {
|
||||
delete data[field];
|
||||
LocalCache.localCache.set(key, data);
|
||||
LocalCache.localCache.set(this.buildKey(key), data);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user