1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-30 15:58:19 +09:00

Add host_lower to User

This commit is contained in:
Akihiko Odaki 2018-03-27 15:57:42 +09:00
parent 336384a193
commit 285bf04221
3 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export type IUser = {
is_suspended: boolean;
keywords: string[];
host: string;
host_lower: string;
account: {
keypair: string;
email: string;

View File

@ -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,

View File

@ -0,0 +1 @@
db.users.update({ }, { $set: { host_lower: null } }, { multi: true });