Fix photo deserialization/serialization

This commit is contained in:
jvyden 2021-11-07 17:02:56 -05:00
commit 0ffd01f59d
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 8 additions and 2 deletions

View file

@ -40,7 +40,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
photo.CreatorId = user.UserId;
photo.Creator = user;
foreach (PhotoSubject subject in photo.Subjects)
foreach (PhotoSubject subject in photo.SubjectsXmlDontUse) // fine for here
{
subject.User = await this.database.Users.FirstOrDefaultAsync(u => u.Username == subject.Username);