mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 20:48:07 +00:00
chore: Migration status in super admin (#7938)
This commit is contained in:
@@ -6,6 +6,7 @@ class SuperAdmin::InstanceStatusesController < SuperAdmin::ApplicationController
|
|||||||
postgres_status
|
postgres_status
|
||||||
redis_metrics
|
redis_metrics
|
||||||
chatwoot_edition
|
chatwoot_edition
|
||||||
|
instance_meta
|
||||||
end
|
end
|
||||||
|
|
||||||
def chatwoot_edition
|
def chatwoot_edition
|
||||||
@@ -18,6 +19,10 @@ class SuperAdmin::InstanceStatusesController < SuperAdmin::ApplicationController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def instance_meta
|
||||||
|
@metrics['Database Migrations'] = ActiveRecord::Base.connection.migration_context.needs_migration? ? 'pending' : 'completed'
|
||||||
|
end
|
||||||
|
|
||||||
def chatwoot_version
|
def chatwoot_version
|
||||||
@metrics['Chatwoot version'] = Chatwoot.config[:version]
|
@metrics['Chatwoot version'] = Chatwoot.config[:version]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user