mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 21:16:49 +00:00
14 lines
No EOL
419 B
C#
14 lines
No EOL
419 B
C#
using SqlKata;
|
|
|
|
namespace PluralKit.Core;
|
|
|
|
public partial class ModelRepository
|
|
{
|
|
public async Task UpdateAccount(ulong id, AccountPatch patch)
|
|
{
|
|
_logger.Information("Updated account {accountId}: {@AccountPatch}", id, patch);
|
|
var query = patch.Apply(new Query("accounts").Where("uid", id));
|
|
_ = _dispatch.Dispatch(id, patch);
|
|
await _db.ExecuteQuery(query, "returning *");
|
|
}
|
|
} |