commit
						9a56c9ad0f
					
				
					 3 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -58,6 +58,7 @@ export type IUser = {
 | 
			
		|||
	pinned_post_id: mongo.ObjectID;
 | 
			
		||||
	is_suspended: boolean;
 | 
			
		||||
	keywords: string[];
 | 
			
		||||
	host: string;
 | 
			
		||||
	account: {
 | 
			
		||||
		keypair: string;
 | 
			
		||||
		email: string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -119,6 +119,7 @@ export default async (req: express.Request, res: express.Response) => {
 | 
			
		|||
		drive_capacity: 1073741824, // 1GB
 | 
			
		||||
		username: username,
 | 
			
		||||
		username_lower: username.toLowerCase(),
 | 
			
		||||
		host: null,
 | 
			
		||||
		account: {
 | 
			
		||||
			keypair: generateKeypair(),
 | 
			
		||||
			token: secret,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								tools/migration/shell.1522116709.user-host.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								tools/migration/shell.1522116709.user-host.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
db.users.update({ }, { $set: { host: null } }, { multi: true });
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue