drop lastCommunicatedAt of instance
This commit is contained in:
parent
7093573f0c
commit
c8bd139713
15 changed files with 19 additions and 27 deletions
|
|
@ -58,7 +58,7 @@ const fetching = ref(true);
|
|||
|
||||
const fetch = async () => {
|
||||
const fetchedInstances = await os.api('federation/instances', {
|
||||
sort: '+lastCommunicatedAt',
|
||||
sort: '+latestRequestReceivedAt',
|
||||
limit: 5,
|
||||
});
|
||||
const fetchedCharts = await Promise.all(fetchedInstances.map(i => os.apiGet('charts/instance', { host: i.host, limit: 16, span: 'hour' })));
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ function onInstanceClick(i) {
|
|||
|
||||
useInterval(() => {
|
||||
os.api('federation/instances', {
|
||||
sort: '+lastCommunicatedAt',
|
||||
sort: '+latestRequestReceivedAt',
|
||||
limit: 25,
|
||||
}).then(res => {
|
||||
activeInstances = res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue