fix profiles field not showing up on responses

master
John Montagu, the 4th Earl of Sandvich 2024-05-16 08:32:33 -07:00
parent 520793ec38
commit e8a53541e8
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,7 @@ export class Client {
const rawResponse: TCResponseRaw = {
ok: res?.ok ?? false,
...res?.responses[0],
profiles: res?.profiles,
};
resolve(new creator(rawResponse));
@ -161,6 +162,7 @@ export class Client {
const individualResponse: TCResponseRaw = {
ok: res?.ok ?? false,
...res?.responses[index],
profiles: res?.profiles,
};
c.resolve(new c.creator(individualResponse));