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:
@@ -10,7 +10,7 @@ namespace PluralKit.Core
|
||||
{
|
||||
_logger.Information("Updated account {accountId}: {@AccountPatch}", id, patch);
|
||||
var query = patch.Apply(new Query("accounts").Where("uid", id));
|
||||
await _db.ExecuteQuery(query);
|
||||
await _db.ExecuteQuery(query, extraSql: "returning *");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user