File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import APIDocs from './api-docs'
4
4
const PlayerGroupAPIDocs : APIDocs < PlayerGroupAPIService > = {
5
5
get : {
6
6
description : 'Get a group and its members' ,
7
+ params : {
8
+ route : {
9
+ id : 'The ID of the group'
10
+ }
11
+ } ,
7
12
samples : [
8
13
{
9
14
title : 'Sample response (members visible)' ,
@@ -24,6 +29,7 @@ const PlayerGroupAPIDocs: APIDocs<PlayerGroupAPIService> = {
24
29
}
25
30
] ,
26
31
ruleMode : '$and' ,
32
+ membersVisible : true ,
27
33
updatedAt : '2024-10-01T23:09:18.000Z' ,
28
34
count : 1 ,
29
35
members : [
@@ -69,6 +75,7 @@ const PlayerGroupAPIDocs: APIDocs<PlayerGroupAPIService> = {
69
75
}
70
76
] ,
71
77
ruleMode : '$and' ,
78
+ membersVisible : false ,
72
79
updatedAt : '2024-10-01T23:09:18.000Z' ,
73
80
count : 1
74
81
}
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ export default class PlayerGroup {
107
107
description : this . description ,
108
108
rules : this . rules ,
109
109
ruleMode : this . ruleMode ,
110
+ membersVisible : this . membersVisible ,
110
111
updatedAt : this . updatedAt
111
112
}
112
113
}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export default class PlayerGroupService extends Service {
128
128
return {
129
129
status : 200 ,
130
130
body : {
131
- group
131
+ group : await group . toJSONWithCount ( )
132
132
}
133
133
}
134
134
}
You can’t perform that action at this time.
0 commit comments