From 7cf54bfe7b5295a685efabc58c1cb2e53e6d21d0 Mon Sep 17 00:00:00 2001 From: a-ill Date: Wed, 2 Aug 2023 18:19:51 +0300 Subject: [PATCH] Update GroupsController.jl --- Server/app/resources/groups/GroupsController.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/app/resources/groups/GroupsController.jl b/Server/app/resources/groups/GroupsController.jl index 605539e..4d55990 100644 --- a/Server/app/resources/groups/GroupsController.jl +++ b/Server/app/resources/groups/GroupsController.jl @@ -247,8 +247,8 @@ end function add_verified_groups() groups_create_requests_verified = select_from_table("groups_requests" => ["*"], where_data = ["group_id" => nothing, "status" => 1]) - data = Dict(zip(names(groups_create_requests_verified),groups_create_requests_verified[end,:])) - if size(data,1)!=0 + if size(groups_create_requests_verified,1)!=0 + data = Dict(zip(names(groups_create_requests_verified),groups_create_requests_verified[end,:])) user_id = data["user_id"] delete!(data,"group_id") delete!(data,"user_id")