feat: update PrivateInstanceService to include baseName in instance updates

This commit is contained in:
Alexa
2026-06-06 22:15:37 +03:00
parent 2375db50ed
commit 92bd22d164
8 changed files with 2081 additions and 33 deletions
@@ -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);
}