mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 21:44:12 +00:00 
			
		
		
		
	chore: remove unused code
This commit is contained in:
		
							parent
							
								
									e9190599ca
								
							
						
					
					
						commit
						1da7be6334
					
				
					 1 changed files with 0 additions and 10 deletions
				
			
		|  | @ -67,16 +67,6 @@ export default class InstanceChart extends Chart<typeof schema> { | ||||||
| 
 | 
 | ||||||
| 	@autobind | 	@autobind | ||||||
| 	public async updateNote(host: string, note: Note, isAdditional: boolean): Promise<void> { | 	public async updateNote(host: string, note: Note, isAdditional: boolean): Promise<void> { | ||||||
| 		const diffs = {} as Record<string, unknown>; |  | ||||||
| 
 |  | ||||||
| 		if (note.replyId != null) { |  | ||||||
| 			diffs.reply = isAdditional ? 1 : -1; |  | ||||||
| 		} else if (note.renoteId != null) { |  | ||||||
| 			diffs.renote = isAdditional ? 1 : -1; |  | ||||||
| 		} else { |  | ||||||
| 			diffs.normal = isAdditional ? 1 : -1; |  | ||||||
| 		} |  | ||||||
| 
 |  | ||||||
| 		await this.commit({ | 		await this.commit({ | ||||||
| 			'notes.total': isAdditional ? 1 : -1, | 			'notes.total': isAdditional ? 1 : -1, | ||||||
| 			'notes.inc': isAdditional ? 1 : 0, | 			'notes.inc': isAdditional ? 1 : 0, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue