mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-05 05:17:54 +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
|
|
@ -8,6 +8,12 @@ namespace PluralKit.Core
|
|||
{
|
||||
public partial class ModelRepository
|
||||
{
|
||||
public Task<PKGroup?> GetGroup(GroupId id)
|
||||
{
|
||||
var query = new Query("groups").Where("id", id);
|
||||
return _db.QueryFirst<PKGroup?>(query);
|
||||
}
|
||||
|
||||
public Task<PKGroup?> GetGroupByName(SystemId system, string name)
|
||||
{
|
||||
var query = new Query("groups").Where("system", system).WhereRaw("lower(name) = lower(?)", name.ToLower());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue