Skip to content

Commit

Permalink
Merge pull request #88 from myclubapp/feat/removeMembers
Browse files Browse the repository at this point in the history
Feat/remove members
  • Loading branch information
sansan88 authored Oct 5, 2023
2 parents e52cb70 + c3f20b2 commit c4f3c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</ion-accordion>
</ion-accordion-group>

<ion-list [inset]="true">
<ion-list>
<ion-item (click)="logout()">
<ion-icon slot="start" name="exit-outline"></ion-icon>
<ion-label>Logout</ion-label>
Expand Down
14 changes: 2 additions & 12 deletions src/app/services/firebase.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,20 +275,10 @@ export class FirebaseService {
}

async deleteTeamMember(teamId: string, userId: string): Promise<any> {

await setDoc(doc(this.firestore, `teams/${teamId}/members/${userId}` ), {
remove: true,
},{
merge: true
});
await deleteDoc(doc(this.firestore, `teams/${teamId}/members/${userId}` ));
}
async deleteTeamAdmin(teamId: string, userId: string): Promise<any> {

await setDoc(doc(this.firestore, `teams/${teamId}/admins/${userId}` ), {
remove: true,
},{
merge: true
});
await deleteDoc(doc(this.firestore, `teams/${teamId}/admins/${userId}` ));
}

async deleteClubember(clubId: string, userId: string): Promise<any> {
Expand Down

0 comments on commit c4f3c32

Please sign in to comment.