perf: ⚡ featured posts query limit
This commit is contained in:
parent
59a625469f
commit
0d72fc19b0
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue