Skip to content

Commit d97bfad

Browse files
committed
return name on share invite lists
1 parent 4e0c2e2 commit d97bfad

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

API/Controller/Shares/UserShares/Invites.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ file static class QueryHelper
3535
Name = x.RecipientUser.Name,
3636
Image = x.RecipientUser.GetImageUrl()
3737
},
38-
Shockers = x.ShockerMappings.Select(y => new ShockerPermLimitPairWithId
38+
Shockers = x.ShockerMappings.Select(y => new ShockerPermLimitPairWithIdAndName
3939
{
4040
Id = y.ShockerId,
41+
Name = y.Shocker.Name,
4142
Limits = new ShockerLimits
4243
{
4344
Intensity = y.MaxIntensity,
@@ -220,5 +221,5 @@ public sealed class ShareRequestCounts
220221

221222
public sealed class ShareInviteBaseDetails : ShareRequestBase
222223
{
223-
public required IEnumerable<ShockerPermLimitPairWithId> Shockers { get; set; }
224+
public required IEnumerable<ShockerPermLimitPairWithIdAndName> Shockers { get; set; }
224225
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace OpenShock.API.Models.Requests;
2+
3+
public class ShockerPermLimitPairWithIdAndName : ShockerPermLimitPairWithId
4+
{
5+
public required string Name { get; set; }
6+
}

API/Models/Response/RequestShareInfo.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)