mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Default meilisearch data response + linting + prettyfier
This commit is contained in:
parent
bd2ece3a01
commit
40ad37b870
3 changed files with 13 additions and 6 deletions
|
@ -85,6 +85,10 @@ async function meilisearchStatus() {
|
|||
if (meilisearch) {
|
||||
return meilisearch.serverStats();
|
||||
} else {
|
||||
return null;
|
||||
return {
|
||||
health: "unconfigured",
|
||||
size: 0,
|
||||
indexed_count: 0,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,6 @@ export default define(meta, paramDef, async () => {
|
|||
total: fsStats[0].size,
|
||||
used: fsStats[0].used,
|
||||
},
|
||||
meilisearch: meilisearchStats,
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -42,6 +41,10 @@ async function meilisearchStatus() {
|
|||
if (meilisearch) {
|
||||
return meilisearch.serverStats();
|
||||
} else {
|
||||
return null;
|
||||
return {
|
||||
health: "unconfigured",
|
||||
size: 0,
|
||||
indexed_count: 0,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue