Improve performance

This commit is contained in:
syuilo 2018-10-31 13:20:24 +09:00
parent e5f95dcc5d
commit 506d102454

View File

@ -181,12 +181,22 @@ export const pack = (
const fields = opts.detail ? { const fields = opts.detail ? {
} : { } : {
bannerColor: false,
bannerUrl: false,
description: false,
notesCount: false,
followersCount: false,
followingCount: false,
lastUsedAt: false,
settings: false, settings: false,
clientSettings: false, clientSettings: false,
profile: false, profile: false,
keywords: false, keywords: false,
domains: false, domains: false,
pinnedNoteIds: false pinnedNoteIds: false,
wallpaperColor: false,
wallpaperId: false,
wallpaperUrl: false
}; };
// Populate the user if 'user' is ID // Populate the user if 'user' is ID