mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Add host_lower to User
This commit is contained in:
parent
b76e29ecdd
commit
8a2bf01167
3 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
1
tools/migration/shell.1522116710.user-host_lower.js
Normal file
1
tools/migration/shell.1522116710.user-host_lower.js
Normal file
|
@ -0,0 +1 @@
|
|||
db.users.update({ }, { $set: { host_lower: null } }, { multi: true });
|
Loading…
Reference in a new issue