Return new member after member PATCH (#191)

This commit is contained in:
Grey Himmel 2020-07-05 06:54:51 -04:00 committed by GitHub
parent 224b653ee0
commit 0d2777c1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ namespace PluralKit.API
}
var newMember = await conn.UpdateMember(member.Id, patch);
return Ok(member.ToJson(User.ContextFor(newMember)));
return Ok(newMember.ToJson(User.ContextFor(newMember)));
}
[HttpDelete("{hid}")]