mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-07-24 06:43:38 +00:00
FIX: Avoid checking for a template when setting an etag.
This commit is contained in:
parent
37fe36778b
commit
195931c6ba
@ -989,7 +989,7 @@ SQL
|
||||
|
||||
def schema
|
||||
schema_version = ActiveRecord::Base.exec_sql("SELECT max(version) AS tag FROM schema_migrations").first['tag']
|
||||
if stale?(public: true, etag: schema_version)
|
||||
if stale?(public: true, etag: schema_version, template: false)
|
||||
render json: DataExplorer.schema
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user