mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(api): return updated switch in PATCH /switches/:id
This commit is contained in:
parent
6ed066de29
commit
92ef6d4ec3
2 changed files with 4 additions and 3 deletions
|
|
@ -183,7 +183,7 @@ public class SwitchControllerV2: PKControllerBase
|
|||
if (await _repo.GetSwitches(system.Id).Select(x => x.Timestamp).ContainsAsync(value))
|
||||
throw Errors.SameSwitchTimestampError;
|
||||
|
||||
await _repo.MoveSwitch(sw.Id, value);
|
||||
sw = await _repo.MoveSwitch(sw.Id, value);
|
||||
|
||||
var members = await _db.Execute(conn => _repo.GetSwitchMembers(conn, sw.Id)).ToListAsync();
|
||||
return Ok(new FrontersReturnNew
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue