mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
feat: update PrivateInstanceService to include baseName in instance updates
This commit is contained in:
@@ -133,6 +133,7 @@ public class PrivateInstanceService(DorkNetDbContext db)
|
||||
if (existing.DataBlob != dataBlob) { existing.DataBlob = dataBlob; changed = true; }
|
||||
if (existing.Location != location) { existing.Location = location; changed = true; }
|
||||
if (existing.PhotonRegion != photonRegion) { existing.PhotonRegion = photonRegion; changed = true; }
|
||||
if (existing.Name != baseName) { existing.Name = baseName; changed = true; }
|
||||
if (changed) await db.SaveChangesAsync();
|
||||
return ToRecord(existing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user