Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
8
research/chatwoot/lib/tasks/instance_id.rake
Normal file
8
research/chatwoot/lib/tasks/instance_id.rake
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace :instance_id do
|
||||
desc 'Get the installation identifier'
|
||||
task :get_installation_identifier => :environment do
|
||||
identifier = InstallationConfig.find_by(name: 'INSTALLATION_IDENTIFIER')&.value
|
||||
identifier ||= InstallationConfig.create!(name: 'INSTALLATION_IDENTIFIER', value: SecureRandom.uuid).value
|
||||
puts identifier
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user