perf: featured posts query limit

This commit is contained in:
ThatOneCalculator 2023-07-29 22:17:14 -07:00
parent 59a625469f
commit 0d72fc19b0
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -19,21 +19,21 @@ import { i18n } from "@/i18n";
const paginationForLocal = { const paginationForLocal = {
endpoint: "notes/featured" as const, endpoint: "notes/featured" as const,
limit: 10, limit: 15,
origin: "local", origin: "local",
offsetMode: true, offsetMode: true,
params: { params: {
days: 14, days: 5,
}, },
}; };
const paginationForRemote = { const paginationForRemote = {
endpoint: "notes/featured" as const, endpoint: "notes/featured" as const,
limit: 20, limit: 15,
offsetMode: true, offsetMode: true,
params: { params: {
origin: "remote", origin: "remote",
days: 7, days: 5,
}, },
}; };