Add untilId param
This commit is contained in:
		
							parent
							
								
									7d599a68ea
								
							
						
					
					
						commit
						67ec10e86d
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
					@ -87,6 +87,12 @@ export const meta = {
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}),
 | 
							}),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							untilId: $.type(ID).optional.note({
 | 
				
			||||||
 | 
								desc: {
 | 
				
			||||||
 | 
									'ja-JP': '指定すると、この投稿を基点としてより古い投稿を取得します'
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		sinceDate: $.num.optional.note({
 | 
							sinceDate: $.num.optional.note({
 | 
				
			||||||
		}),
 | 
							}),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -318,6 +324,14 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (ps.untilId) {
 | 
				
			||||||
 | 
							push({
 | 
				
			||||||
 | 
								_id: {
 | 
				
			||||||
 | 
									$lt: ps.untilId
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ps.sinceDate) {
 | 
						if (ps.sinceDate) {
 | 
				
			||||||
		push({
 | 
							push({
 | 
				
			||||||
			createdAt: {
 | 
								createdAt: {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue