Change joinGroup function to match with backend

master
Max 5 years ago
parent 5c96c7ad44
commit 73d3aa5b61

@ -51,7 +51,7 @@ export class RequestService extends BaseService {
private static buildJoinGroupBody(id: number): any {
return {
query: `mutation($id: ID!) {
joinGroup(id: $id) {
joinGroup(groupId: $id) {
id
}
}`
@ -127,6 +127,7 @@ export class RequestService extends BaseService {
* @param group
*/
public joinGroup(groupId: number) {
console.log('join group' + groupId);
return this.postGraphql(RequestService.buildJoinGroupBody(groupId));
}

Loading…
Cancel
Save