Skip to content

Commit

Permalink
var name update
Browse files Browse the repository at this point in the history
  • Loading branch information
mindset-tk committed Sep 11, 2023
1 parent bb96e05 commit ed08bfc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/preFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function filterTimestamps(searchee: Searchee): Promise<boolean> {
enabledIndexers.map((i) => i.id)
)
.min({
first_searched_all: db.raw(
first_searched_any: db.raw(
"coalesce(timestamp.first_searched, 9223372036854775807)"
),
})
Expand All @@ -87,7 +87,7 @@ export async function filterTimestamps(searchee: Searchee): Promise<boolean> {
})
.first();

const { first_searched_all, last_searched_all } = timestampDataSql;
const { first_searched_any, last_searched_all } = timestampDataSql;
function logReason(reason) {
logger.verbose({
label: Label.PREFILTER,
Expand All @@ -97,12 +97,12 @@ export async function filterTimestamps(searchee: Searchee): Promise<boolean> {

if (
typeof excludeOlder === "number" &&
first_searched_all &&
first_searched_all < nMsAgo(excludeOlder)
first_searched_any &&
first_searched_any < nMsAgo(excludeOlder)
) {
logReason(
`its first search timestamp ${humanReadable(
first_searched_all
first_searched_any
)} is older than ${ms(excludeOlder, { long: true })} ago`
);
return false;
Expand Down

0 comments on commit ed08bfc

Please sign in to comment.