fix(api): Get ab list when personal is disabled (#86)

This commit is contained in:
lejianwen
2024-12-25 19:04:42 +08:00
parent 1dd920d192
commit 5c96350e7d
2 changed files with 3 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ func (i *WebClient) ServerConfig(c *gin.Context) {
u := service.AllService.UserService.CurUser(c)
peers := map[string]*api.WebClientPeerPayload{}
abs := service.AllService.AddressBookService.ListByUserId(u.Id, 1, 100)
abs := service.AllService.AddressBookService.ListByUserIdAndCollectionId(u.Id, 0, 1, 100)
for _, ab := range abs.AddressBooks {
pp := &api.WebClientPeerPayload{}
pp.FromAddressBook(ab)