Skip to content
Snippets Groups Projects
Commit 285bf042 authored by Akihiko Odaki's avatar Akihiko Odaki
Browse files

Add host_lower to User

parent 336384a1
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ export type IUser = {
is_suspended: boolean;
keywords: string[];
host: string;
host_lower: string;
account: {
keypair: string;
email: string;
......
......@@ -120,6 +120,7 @@ export default async (req: express.Request, res: express.Response) => {
username: username,
username_lower: username.toLowerCase(),
host: null,
host_lower: null,
account: {
keypair: generateKeypair(),
token: secret,
......
db.users.update({ }, { $set: { host_lower: null } }, { multi: true });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment