mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix(api): have correct behaviour for 'before' param
This commit is contained in:
parent
1d5943b6e1
commit
b4b83f2c94
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ namespace PluralKit.API
|
|||
select members.hid from switch_members, members
|
||||
where switch_members.switch = switches.id and members.id = switch_members.member
|
||||
) as members from switches
|
||||
where switches.system = @System and switches.timestamp <= @Before
|
||||
where switches.system = @System and switches.timestamp < @Before
|
||||
order by switches.timestamp desc
|
||||
limit @Limit;", new { System = system.Id, Before = before, Limit = limit }));
|
||||
return Ok(res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue