タイムラインを特定の日付にジャンプする機能

This commit is contained in:
syuilo 2021-02-20 22:28:53 +09:00
parent b0757129d5
commit f3aef8df75
4 changed files with 39 additions and 6 deletions

View file

@ -85,7 +85,7 @@ export default define(meta, async (ps, user) => {
}
//#region Construct query
const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId)
const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
.andWhere('note.channelId = :channelId', { channelId: channel.id })
.leftJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.channel', 'channel');