Skip to content

Commit

Permalink
Merge pull request #308 from gen-mind/patch/unsupportder-file-types
Browse files Browse the repository at this point in the history
adjust documents list in chat
  • Loading branch information
apaladiychuk authored Jun 27, 2024
2 parents def6a8d + 9ceb263 commit 96e5c43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/backend/core/connector/ms-teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,15 @@ func (c *MSTeams) execute(ctx context.Context, param map[string]string) error {

if c.param.AnalyzeChats {
if err := c.loadChats(ctx, ""); err != nil {
return fmt.Errorf("load chats : %s", err.Error())
zap.S().Errorf("error loading chats : %s ", err.Error())
//return fmt.Errorf("load chats : %s", err.Error())
}
}

if teamID, ok := param[msTeamsParamTeamID]; ok {
if err := c.loadChannels(ctx, teamID); err != nil {
return fmt.Errorf("load channels : %s", err.Error())
zap.S().Errorf("error loading channels : %s ", err.Error())
//return fmt.Errorf("load channels : %s", err.Error())
}
}
// save current state
Expand Down Expand Up @@ -435,7 +437,7 @@ func (c *MSTeams) loadChats(ctx context.Context, nextLink string) error {
url = msTeamsChats
}
if err := c.requestAndParse(ctx, url, &response); err != nil {
return err
return nil
}

for _, chat := range response.Value {
Expand Down

0 comments on commit 96e5c43

Please sign in to comment.