Clean packed responses
This commit is contained in:
parent
85d3023cd5
commit
8316186695
|
@ -148,7 +148,7 @@ export class NoteRepository extends Repository<Note> {
|
||||||
return reaction.reaction;
|
return reaction.reaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
let text = note.text;
|
let text = note.text;
|
||||||
|
|
|
@ -89,9 +89,7 @@ export class UserRepository extends Repository<User> {
|
||||||
username: user.username,
|
username: user.username,
|
||||||
host: user.host,
|
host: user.host,
|
||||||
avatarUrl: user.avatarUrl,
|
avatarUrl: user.avatarUrl,
|
||||||
bannerUrl: user.bannerUrl,
|
|
||||||
avatarColor: user.avatarColor,
|
avatarColor: user.avatarColor,
|
||||||
bannerColor: user.bannerColor,
|
|
||||||
isAdmin: user.isAdmin || undefined,
|
isAdmin: user.isAdmin || undefined,
|
||||||
isBot: user.isBot || undefined,
|
isBot: user.isBot || undefined,
|
||||||
isCat: user.isCat || undefined,
|
isCat: user.isCat || undefined,
|
||||||
|
@ -121,6 +119,8 @@ export class UserRepository extends Repository<User> {
|
||||||
url: profile!.url,
|
url: profile!.url,
|
||||||
createdAt: user.createdAt,
|
createdAt: user.createdAt,
|
||||||
updatedAt: user.updatedAt,
|
updatedAt: user.updatedAt,
|
||||||
|
bannerUrl: user.bannerUrl,
|
||||||
|
bannerColor: user.bannerColor,
|
||||||
description: profile!.description,
|
description: profile!.description,
|
||||||
location: profile!.location,
|
location: profile!.location,
|
||||||
birthday: profile!.birthday,
|
birthday: profile!.birthday,
|
||||||
|
|
Loading…
Reference in New Issue