Skip to content
Snippets Groups Projects
Commit 7cfe7da7 authored by syuilo's avatar syuilo
Browse files

fix

parent f55e1ee1
No related branches found
No related tags found
No related merge requests found
......@@ -133,14 +133,14 @@ export class CacheService implements OnApplicationShutdown {
if (user == null) {
this.userByIdCache.delete(body.id);
for (const [k, v] of this.uriPersonCache.cache.entries()) {
if (v.value === body.id) {
if (v.value?.id === body.id) {
this.uriPersonCache.delete(k);
}
}
} else {
this.userByIdCache.set(user.id, user);
for (const [k, v] of this.uriPersonCache.cache.entries()) {
if (v.value === user.id) {
if (v.value?.id === user.id) {
this.uriPersonCache.set(k, user);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment