mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	fix(backend): ハッシュタグのランキングの問い合わせ結果がないときのエラー修正 (#12145)
* fix(backend): undefined result error * Update Changelog * Update packages/backend/src/core/FeaturedService.ts Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
		
							parent
							
								
									a8ee67cace
								
							
						
					
					
						commit
						8a2309ba7d
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -33,6 +33,7 @@
 | 
			
		|||
- Fix: 自分のフォローしているユーザーの自分のフォローしていないユーザーの visibility: followers な投稿への返信がストリーミングで流れてくる問題を修正
 | 
			
		||||
- Fix: RedisへのTLキャッシュが有効の場合にHTL/LTL/STLが空になることがある問題を修正
 | 
			
		||||
- Fix: STLでフォローしていないチャンネルが取得される問題を修正
 | 
			
		||||
- Fix: `hashtags/trend`にてRedisからトレンドの情報が取得できない際にInternal Server Errorになる問題を修正
 | 
			
		||||
- Fix: フォローしているチャンネルをフォロー解除した時(またはその逆)、タイムラインに反映される間隔を改善
 | 
			
		||||
 | 
			
		||||
## 2023.10.2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@ export class FeaturedService {
 | 
			
		|||
			`${name}:${currentWindow}`, 0, threshold, 'REV', 'WITHSCORES');
 | 
			
		||||
		redisPipeline.zrange(
 | 
			
		||||
			`${name}:${previousWindow}`, 0, threshold, 'REV', 'WITHSCORES');
 | 
			
		||||
		const [currentRankingResult, previousRankingResult] = await redisPipeline.exec().then(result => result ? result.map(r => r[1] as string[]) : [[], []]);
 | 
			
		||||
		const [currentRankingResult, previousRankingResult] = await redisPipeline.exec().then(result => result ? result.map(r => (r[1] ?? []) as string[]) : [[], []]);
 | 
			
		||||
 | 
			
		||||
		const ranking = new Map<string, number>();
 | 
			
		||||
		for (let i = 0; i < currentRankingResult.length; i += 2) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue