mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
CRUSHED: duplicate key value violates unique constraint 'index_uploads_on_sha1'
This commit is contained in:
@ -256,7 +256,7 @@ module Discourse
|
||||
user ||= User.admins.real.order(:id).first
|
||||
end
|
||||
|
||||
SYSTEM_USER_ID = -1 unless defined? SYSTEM_USER_ID
|
||||
SYSTEM_USER_ID ||= -1
|
||||
|
||||
def self.system_user
|
||||
User.find_by(id: SYSTEM_USER_ID)
|
||||
|
Reference in New Issue
Block a user