mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-05 16:24:41 +09:00
fix: typo (#9300)
This commit is contained in:
@ -10,20 +10,20 @@ import { bindThis } from '@/decorators.js';
|
||||
|
||||
@Injectable()
|
||||
export class IdService {
|
||||
private metohd: string;
|
||||
private method: string;
|
||||
|
||||
constructor(
|
||||
@Inject(DI.config)
|
||||
private config: Config,
|
||||
) {
|
||||
this.metohd = config.id.toLowerCase();
|
||||
this.method = config.id.toLowerCase();
|
||||
}
|
||||
|
||||
@bindThis
|
||||
public genId(date?: Date): string {
|
||||
if (!date || (date > new Date())) date = new Date();
|
||||
|
||||
switch (this.metohd) {
|
||||
switch (this.method) {
|
||||
case 'aid': return genAid(date);
|
||||
case 'meid': return genMeid(date);
|
||||
case 'meidg': return genMeidg(date);
|
||||
|
Reference in New Issue
Block a user