mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修改用户id的数量
This commit is contained in:
@@ -702,7 +702,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def projects_count
|
||||
Project.joins(:members).where(members: { user_id: self.id })
|
||||
Project.joins(:members).where(members: { user_id: self.id }).select(:id).size
|
||||
end
|
||||
|
||||
# 是否已经签到
|
||||
|
||||
Reference in New Issue
Block a user