modify comment

This commit is contained in:
tamaina 2024-07-18 00:02:36 +09:00
parent e602f2efda
commit 72cda5ca80
1 changed files with 4 additions and 3 deletions

View File

@ -53,13 +53,14 @@ export class UserKeypairService implements OnApplicationShutdown {
* Get private key [Only PrivateKeyWithPem for queue data etc.] * Get private key [Only PrivateKeyWithPem for queue data etc.]
* @param userIdOrHint user id or MiUserKeypair * @param userIdOrHint user id or MiUserKeypair
* @param preferType * @param preferType
* If ed25519-like(`ed25519`, `01`, `11`) is specified, ed25519 keypair is returned if exists. * If ed25519-like(`ed25519`, `01`, `11`) is specified, ed25519 keypair will be returned if exists.
* Otherwise, main keypair is returned. * Otherwise, main keypair will be returned.
* @returns * @returns
*/ */
@bindThis @bindThis
public async getLocalUserPrivateKeyPem( public async getLocalUserPrivateKeyPem(
userIdOrHint: MiUser['id'] | MiUserKeypair, preferType?: string, userIdOrHint: MiUser['id'] | MiUserKeypair,
preferType?: string,
): Promise<PrivateKeyWithPem> { ): Promise<PrivateKeyWithPem> {
const keypair = typeof userIdOrHint === 'string' ? await this.getUserKeypair(userIdOrHint) : userIdOrHint; const keypair = typeof userIdOrHint === 'string' ? await this.getUserKeypair(userIdOrHint) : userIdOrHint;
if ( if (