mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	Fix bug
This commit is contained in:
		
							parent
							
								
									c61050244e
								
							
						
					
					
						commit
						944f9524e2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -60,7 +60,7 @@ module.exports = () => new Promise(async (res, rej) => {
 | 
			
		|||
	//#region 2. 1で取得したそれぞれのタグについて、「直近a分間のユニーク投稿数が今からa分前~今からb分前の間のユニーク投稿数のn倍以上」かどうかを判定する
 | 
			
		||||
	const hotsPromises = tags.map(async tag => {
 | 
			
		||||
		const passedCount = (await Note.distinct('userId', {
 | 
			
		||||
			tags: tag,
 | 
			
		||||
			tags: tag.name,
 | 
			
		||||
			createdAt: {
 | 
			
		||||
				$lt: new Date(Date.now() - rangeA),
 | 
			
		||||
				$gt: new Date(Date.now() - rangeB)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue