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

Method loadCurrentTeamDataStoreMethod

app/lib/store/User.ts:294–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292
293 // review later
294 public async loadCurrentTeamDataStoreMethod() {
295 if (this.currentTeam) {
296 await this.currentTeam
297 .loadTeamMembersStoreMethod()
298 .catch((err) => console.error('Error while loading Users', err));
299
300 await this.loadActiveDiscussionsStoreMethod({ teamId: this.currentTeam.teamId }).catch(
301 (err) => console.error('Error while loading Discussions', err),
302 );
303
304 await this.loadChatsStoreMethod({ teamId: this.currentTeam.teamId }).catch((err) =>
305 console.error('Error while loading Chats', err),
306 );
307 }
308 }
309
310 public async setCurrentTeamStoreMethod(teamId: string) {
311 if (this.currentTeam) {

Callers 1

Tested by

no test coverage detected