drop latestStatus of instance

This commit is contained in:
syuilo 2023-01-03 09:03:04 +09:00
parent c8bd139713
commit 4d0859ce7f
4 changed files with 11 additions and 14 deletions

View file

@ -59,14 +59,6 @@ export class Instance {
})
public followersCount: number;
/**
* HTTPステータスコード
*/
@Column('integer', {
nullable: true,
})
public latestStatus: number | null;
/**
*
*/

View file

@ -85,7 +85,6 @@ export class DeliverProcessorService {
// Update stats
this.federatedInstanceService.registerOrFetchInstanceDoc(host).then(i => {
this.instancesRepository.update(i.id, {
latestStatus: 200,
isNotResponding: false,
});
@ -101,7 +100,6 @@ export class DeliverProcessorService {
// Update stats
this.federatedInstanceService.registerOrFetchInstanceDoc(host).then(i => {
this.instancesRepository.update(i.id, {
latestStatus: res instanceof StatusError ? res.statusCode : null,
isNotResponding: true,
});