This commit is contained in:
syuilo
2018-04-17 22:31:52 +09:00
parent 7c5b9ba1d1
commit 50d56bdc25
3 changed files with 1 additions and 51 deletions

View File

@ -47,7 +47,6 @@ type IUserBase = {
bannerId: mongo.ObjectID;
data: any;
description: string;
latestNote: INote;
pinnedNoteId: mongo.ObjectID;
isSuspended: boolean;
keywords: string[];
@ -332,9 +331,6 @@ export const pack = (
_user.id = _user._id;
delete _user._id;
// Remove needless properties
delete _user.latestNote;
if (_user.host == null) {
// Remove private properties
delete _user.keypair;