Fix typo
This commit is contained in:
		
							parent
							
								
									f5972cabb3
								
							
						
					
					
						commit
						0c0281d51d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -5,12 +5,12 @@ import { genMeidg } from './id/meidg'; | |||
| import { genObjectId } from './id/object-id'; | ||||
| import config from '../config'; | ||||
| 
 | ||||
| const metohd = config.id.toLowerCase(); | ||||
| const method = config.id.toLowerCase(); | ||||
| 
 | ||||
| export function genId(date?: Date): string { | ||||
| 	if (!date || (date > new Date())) date = new Date(); | ||||
| 
 | ||||
| 	switch (metohd) { | ||||
| 	switch (method) { | ||||
| 		case 'aid': return genAid(date); | ||||
| 		case 'meid': return genMeid(date); | ||||
| 		case 'meidg': return genMeidg(date); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue