Regression: Settings pagination not working (#3277)
This commit is contained in:
parent
e040be0b45
commit
d1702aa416
|
@ -138,9 +138,10 @@ export function subscribeSettings() {
|
|||
export default async function() {
|
||||
try {
|
||||
const db = database.active;
|
||||
const settingsParams = JSON.stringify(Object.keys(settings).filter(key => !loginSettings.includes(key)));
|
||||
const settingsParams = Object.keys(settings).filter(key => !loginSettings.includes(key));
|
||||
// RC 0.60.0
|
||||
const result = await fetch(`${ this.sdk.client.host }/api/v1/settings.public?query={"_id":{"$in":${ settingsParams }}}`).then(response => response.json());
|
||||
const result = await fetch(`${ this.sdk.client.host }/api/v1/settings.public?query={"_id":{"$in":${ JSON.stringify(settingsParams) }}}&count=${ settingsParams.length }`)
|
||||
.then(response => response.json());
|
||||
|
||||
if (!result.success) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue