mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(webhooks): init, add service/models, add JSON to patch objects
This commit is contained in:
parent
08c5b78cc2
commit
71aec0d419
14 changed files with 551 additions and 2 deletions
|
|
@ -100,6 +100,9 @@ namespace PluralKit.Core
|
|||
return _db.QueryStream<PKSwitch>(query);
|
||||
}
|
||||
|
||||
public Task<PKSwitch?> GetSwitch(SwitchId id)
|
||||
=> _db.QueryFirst<PKSwitch?>(new Query("switches").Where("id", id));
|
||||
|
||||
public Task<PKSwitch> GetSwitchByUuid(Guid uuid)
|
||||
{
|
||||
var query = new Query("switches").Where("uuid", uuid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue