Skip to content

Commit

Permalink
Use store name in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Mar 9, 2024
1 parent c3b846c commit 9b9e6c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c *ApiController) addInitialChat(organization string, userName string) (*o
UpdatedTime: currentTime,
Organization: organization,
DisplayName: fmt.Sprintf("New Chat - %d", 1),
Store: store.GetId(),
Store: store.Name,
Category: "Default Category",
Type: "AI",
User: userName,
Expand Down
2 changes: 1 addition & 1 deletion controllers/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (c *ApiController) AddChat() {
return
}

chat.Store = store.GetId()
chat.Store = store.Name
}

success, err := object.AddChat(&chat)
Expand Down

0 comments on commit 9b9e6c8

Please sign in to comment.