mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: don't query the entire config table in message_context
This commit is contained in:
parent
4d04f859e6
commit
fff8e179ba
1 changed files with 1 additions and 2 deletions
|
|
@ -49,12 +49,11 @@ as $$
|
|||
coalesce(system.tag_enabled, true) as tag_enabled,
|
||||
system.avatar_url as system_avatar,
|
||||
system.account_autoproxy as allow_autoproxy,
|
||||
system_config.latch_timeout as latch_timeout
|
||||
system.latch_timeout as latch_timeout
|
||||
-- We need a "from" clause, so we just use some bogus data that's always present
|
||||
-- This ensure we always have exactly one row going forward, so we can left join afterwards and still get data
|
||||
from (select 1) as _placeholder
|
||||
left join system on true
|
||||
left join system_config on true
|
||||
left join guild on true
|
||||
left join last_message on true
|
||||
left join system_last_switch on system_last_switch.system = system.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue