drop latestStatus of instance
This commit is contained in:
		
							parent
							
								
									c8bd139713
								
							
						
					
					
						commit
						4d0859ce7f
					
				
					 4 changed files with 11 additions and 14 deletions
				
			
		|  | @ -0,0 +1,11 @@ | |||
| export class removeLatestStatus1672704136584 { | ||||
|     name = 'removeLatestStatus1672704136584' | ||||
| 
 | ||||
|     async up(queryRunner) { | ||||
|         await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "latestStatus"`); | ||||
|     } | ||||
| 
 | ||||
|     async down(queryRunner) { | ||||
|         await queryRunner.query(`ALTER TABLE "instance" ADD "latestStatus" integer`); | ||||
|     } | ||||
| } | ||||
|  | @ -59,14 +59,6 @@ export class Instance { | |||
| 	}) | ||||
| 	public followersCount: number; | ||||
| 
 | ||||
| 	/** | ||||
| 	 * 直近のリクエスト送信時のHTTPステータスコード | ||||
| 	 */ | ||||
| 	@Column('integer', { | ||||
| 		nullable: true, | ||||
| 	}) | ||||
| 	public latestStatus: number | null; | ||||
| 
 | ||||
| 	/** | ||||
| 	 * 直近のリクエスト受信日時 | ||||
| 	 */ | ||||
|  |  | |||
|  | @ -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, | ||||
| 				}); | ||||
| 
 | ||||
|  |  | |||
|  | @ -40,10 +40,6 @@ | |||
| 					<template #key>{{ i18n.ts.updatedAt }}</template> | ||||
| 					<template #value><MkTime mode="detail" :time="instance.infoUpdatedAt"/></template> | ||||
| 				</MkKeyValue> | ||||
| 				<MkKeyValue oneline style="margin: 1em 0;"> | ||||
| 					<template #key>{{ i18n.ts.latestStatus }}</template> | ||||
| 					<template #value>{{ instance.latestStatus ? instance.latestStatus : 'N/A' }}</template> | ||||
| 				</MkKeyValue> | ||||
| 				<MkKeyValue oneline style="margin: 1em 0;"> | ||||
| 					<template #key>{{ i18n.ts.latestRequestReceivedAt }}</template> | ||||
| 					<template #value><MkTime v-if="instance.latestRequestReceivedAt" :time="instance.latestRequestReceivedAt"/><span v-else>N/A</span></template> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue