refactor: rename instance.caughtAt to instance.firstRetrievedAt
This commit is contained in:
parent
7e5f3dbf11
commit
30fced38c4
10 changed files with 23 additions and 11 deletions
|
|
@ -34,7 +34,7 @@ export class FederatedInstanceService {
|
|||
const i = await this.instancesRepository.insert({
|
||||
id: this.idService.genId(),
|
||||
host,
|
||||
caughtAt: new Date(),
|
||||
firstRetrievedAt: new Date(),
|
||||
}).then(x => this.instancesRepository.findOneByOrFail(x.identifiers[0]));
|
||||
|
||||
this.cache.set(host, i);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export class InstanceEntityService {
|
|||
const meta = await this.metaService.fetch();
|
||||
return {
|
||||
id: instance.id,
|
||||
caughtAt: instance.caughtAt.toISOString(),
|
||||
firstRetrievedAt: instance.firstRetrievedAt.toISOString(),
|
||||
host: instance.host,
|
||||
usersCount: instance.usersCount,
|
||||
notesCount: instance.notesCount,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue