hides the user status histories and tokens from the auth endpoints, which were resulting in errors

This commit is contained in:
Wyatt Johnson
2018-01-11 13:56:23 -07:00
parent 92b506c85a
commit d837562089
+6 -2
View File
@@ -205,9 +205,13 @@ const UserSchema = new Schema({
toJSON: {
transform: function (doc, ret) {
delete ret.password;
delete ret._id;
delete ret.__v;
delete ret._id;
delete ret.password;
delete ret.status.username.history;
delete ret.status.banned.history;
delete ret.status.suspension.history;
delete ret.tokens;
}
}
});