mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 10:19:27 +08:00
limit fields when fetching server list
This commit is contained in:
@@ -40,18 +40,14 @@ const verifyAuth = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const updateSystemList = async () => {
|
export const updateSystemList = async () => {
|
||||||
// try {
|
const records = await pb
|
||||||
const records = await pb.collection<SystemRecord>('systems').getFullList({ sort: '+name' })
|
.collection<SystemRecord>('systems')
|
||||||
|
.getFullList({ sort: '+name', fields: 'id,name,host,info,status' })
|
||||||
if (records.length) {
|
if (records.length) {
|
||||||
$systems.set(records)
|
$systems.set(records)
|
||||||
} else {
|
} else {
|
||||||
verifyAuth()
|
verifyAuth()
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
// catch (e) {
|
|
||||||
// console.log('verifying auth error', e)
|
|
||||||
// verifyAuth()
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const updateAlerts = () => {
|
export const updateAlerts = () => {
|
||||||
|
Reference in New Issue
Block a user