fix: when count is actually 0
This commit is contained in:
parent
681cefcda5
commit
2117977d88
|
@ -488,8 +488,8 @@ export const UserRepository = db.getRepository(User).extend({
|
|||
birthday: profile!.birthday,
|
||||
lang: profile!.lang,
|
||||
fields: profile!.fields,
|
||||
followersCount: followersCount || '?',
|
||||
followingCount: followingCount || '?',
|
||||
followersCount: followersCount || 0,
|
||||
followingCount: followingCount || 0,
|
||||
notesCount: user.notesCount,
|
||||
pinnedNoteIds: pins.map((pin) => pin.noteId),
|
||||
pinnedNotes: Notes.packMany(
|
||||
|
|
Loading…
Reference in New Issue