This commit is contained in:
tamaina 2024-03-03 22:03:25 +00:00
parent 13af6f2313
commit aabdb666b7

View file

@ -75,7 +75,7 @@ export class FetchInstanceMetadataService {
const _instance = await this.federatedInstanceService.fetch(host); const _instance = await this.federatedInstanceService.fetch(host);
const now = Date.now(); const now = Date.now();
if (_instance && _instance.infoUpdatedAt && (now - _instance.infoUpdatedAt.getTime() < REMOTE_SERVER_CACHE_TTL)) { if (_instance && _instance.infoUpdatedAt && (now - _instance.infoUpdatedAt.getTime() < REMOTE_SERVER_CACHE_TTL)) {
throw new Error('Skip because updated recently'); throw new Error(`Skip because updated recently ${_instance.infoUpdatedAt.toJSON()}`);
} }
} }