mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
fix(bot): add callback to update message count after proxying
also re-add -with-last-message flag :D
This commit is contained in:
parent
8e0454a13b
commit
24db9f28c2
9 changed files with 32 additions and 17 deletions
|
|
@ -9,10 +9,6 @@ from systems
|
|||
|
||||
create view member_list as
|
||||
select members.*,
|
||||
-- Find last message ID
|
||||
-- max(mid) does full table scan, order by/limit uses index (dunno why, but it works!)
|
||||
-- (select mid from messages where messages.member = members.id order by mid desc nulls last limit 1) as last_message,
|
||||
|
||||
-- Find last switch timestamp
|
||||
(
|
||||
select max(switches.timestamp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue