MCPcopy Create free account
hub / github.com/async-labs/async / deleteCurrentTeamStoreMethod

Method deleteCurrentTeamStoreMethod

app/lib/store/User.ts:1065–1077  ·  view source on GitHub ↗
({ teamId }: { teamId: string })

Source from the content-addressed store, hash-verified

1063 }
1064
1065 public async deleteCurrentTeamStoreMethod({ teamId }: { teamId: string }) {
1066 await deleteCurrentTeamApiMethod({
1067 socketId: (this.store.socket && this.store.socket.id) || null,
1068 teamId,
1069 });
1070
1071 const defaultTeam = this.teamsForUser.find((t) => t.teamId === this.defaultTeamId);
1072
1073 runInAction(() => {
1074 this.setCurrentTeamStoreMethod(defaultTeam.teamId);
1075 this.removeTeamFromLocalCacheStoreMethod(teamId, defaultTeam.teamId);
1076 });
1077 }
1078
1079 public async getListOfInvoicesForAccountStoreMethod(teamId: string) {
1080 try {

Callers 1

TeamSettingsPageClass · 0.80

Tested by

no test coverage detected