fix cache update

This commit is contained in:
Namekuji 2023-04-15 09:19:58 -04:00
parent 3ccf1d5307
commit 7f43e76a89
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ export class ApPersonService implements OnModuleInit {
await this.updateFeatured(exist.id, resolver).catch(err => this.logger.error(err)); await this.updateFeatured(exist.id, resolver).catch(err => this.logger.error(err));
this.cacheService.uriPersonCache.set(uri, Object.assign(exist, updates)); this.cacheService.uriPersonCache.set(uri, { ...exist, ...updates });
// Copy blocking and muting if we know its moving for the first time. // Copy blocking and muting if we know its moving for the first time.
if (!exist.movedToUri && updates.movedToUri) { if (!exist.movedToUri && updates.movedToUri) {