Skip to content
Snippets Groups Projects
Unverified Commit 83161866 authored by syuilo's avatar syuilo
Browse files

Clean packed responses

parent 85d3023c
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ export class NoteRepository extends Repository<Note> {
return reaction.reaction;
}
return null;
return undefined;
}
let text = note.text;
......
......@@ -89,9 +89,7 @@ export class UserRepository extends Repository<User> {
username: user.username,
host: user.host,
avatarUrl: user.avatarUrl,
bannerUrl: user.bannerUrl,
avatarColor: user.avatarColor,
bannerColor: user.bannerColor,
isAdmin: user.isAdmin || undefined,
isBot: user.isBot || undefined,
isCat: user.isCat || undefined,
......@@ -121,6 +119,8 @@ export class UserRepository extends Repository<User> {
url: profile!.url,
createdAt: user.createdAt,
updatedAt: user.updatedAt,
bannerUrl: user.bannerUrl,
bannerColor: user.bannerColor,
description: profile!.description,
location: profile!.location,
birthday: profile!.birthday,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment