refactor: read user profile fields from profile table
This commit is contained in:
@@ -136,8 +136,8 @@ func TestUserQuerySupportsKeywordAndUserIDs(t *testing.T) {
|
||||
"AS register_type",
|
||||
"im_registration_invite_uses",
|
||||
"im_fileuploads AS avatar",
|
||||
"JSON_EXTRACT(u.public,'$.avatar')",
|
||||
"JSON_EXTRACT(u.public,'$.photo.data')",
|
||||
"p.avatar_file_id",
|
||||
"im_user_profiles AS p",
|
||||
} {
|
||||
if !strings.Contains(usersInternalQuerySpec().Select+usersInternalQuerySpec().From, field) {
|
||||
t.Fatalf("user query missing list field %q", field)
|
||||
|
||||
Reference in New Issue
Block a user