Fetch correct server when updating info (#1623)

This commit is contained in:
Sam 2025-07-04 07:54:33 -07:00 committed by Ethan Pippin
parent 8fbc7fec3e
commit d9227deafe
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ extension ServerState {
func updateServerInfo() async throws {
guard let server = try? SwiftfinStore.dataStack.fetchOne(
From<ServerModel>()
From<ServerModel>().where(Where(\.$id == id))
) else { return }
let publicInfo = try await getPublicSystemInfo()