Fix originally published at filter
This commit is contained in:
parent
6866717bcd
commit
3f6eb26a8d
|
@ -59,7 +59,7 @@ async function queryVideos (search: VideosSearchQuery) {
|
||||||
filter.push({
|
filter.push({
|
||||||
range: {
|
range: {
|
||||||
originallyPublishedAt: {
|
originallyPublishedAt: {
|
||||||
gte: search.startDate
|
gte: search.originallyPublishedStartDate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -69,7 +69,7 @@ async function queryVideos (search: VideosSearchQuery) {
|
||||||
filter.push({
|
filter.push({
|
||||||
range: {
|
range: {
|
||||||
originallyPublishedAt: {
|
originallyPublishedAt: {
|
||||||
lte: search.endDate
|
lte: search.originallyPublishedEndDate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue