add favourite slots amount thing

This commit is contained in:
hydronePVP45 2021-11-15 20:13:32 +01:00 committed by GitHub
commit cdd3ece718
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
string response = heartedLevels.Aggregate(string.Empty, (current, q) => current + q.Slot.Serialize());
return this.Ok(LbpSerializer.TaggedStringElement("favouriteSlots", response, "total", 1));
return this.Ok(LbpSerializer.TaggedStringElement("favouriteSlots", response, "total", heartedLevels.Count()));
}
[HttpPost("favourite/slot/user/{id:int}")]