chore: deprecate user setting legacy api

This commit is contained in:
Steven
2023-12-08 22:41:47 +08:00
parent b2d898dc15
commit 7fc7b19d64
16 changed files with 54 additions and 494 deletions

View File

@ -201,7 +201,7 @@ func (s *APIV2Service) GetUserSetting(ctx context.Context, _ *apiv2pb.GetUserSet
return nil, status.Errorf(codes.Internal, "failed to get current user: %v", err)
}
userSettings, err := s.Store.ListUserSettingsV1(ctx, &store.FindUserSettingV1{
userSettings, err := s.Store.ListUserSettingsV1(ctx, &store.FindUserSetting{
UserID: &user.ID,
})
if err != nil {