mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: explicitly return * in Patch queries
This is needed because the API takes the object from the database query to return to the user
This commit is contained in:
parent
0dd20c64ce
commit
502265973c
3 changed files with 5 additions and 5 deletions
|
|
@ -64,7 +64,7 @@ namespace PluralKit.Core
|
|||
{
|
||||
_logger.Information("Updated {MemberId}: {@MemberPatch}", id, patch);
|
||||
var query = patch.Apply(new Query("members").Where("id", id));
|
||||
return _db.QueryFirst<PKMember>(conn, query);
|
||||
return _db.QueryFirst<PKMember>(conn, query, extraSql: "returning *");
|
||||
}
|
||||
|
||||
public Task DeleteMember(MemberId id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue