✌️
This commit is contained in:
@@ -73,3 +73,10 @@ export type IUser = {
|
||||
is_suspended: boolean;
|
||||
keywords: string[];
|
||||
};
|
||||
|
||||
export function init(user): IUser {
|
||||
user._id = new mongo.ObjectID(user._id);
|
||||
user.avatar_id = new mongo.ObjectID(user.avatar_id);
|
||||
user.banner_id = new mongo.ObjectID(user.banner_id);
|
||||
user.pinned_post_id = new mongo.ObjectID(user.pinned_post_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user