1
0
forked from mirror/misskey

use transactionalEntityManager

This commit is contained in:
tamaina 2024-03-10 16:44:05 +00:00
parent d7c32cef70
commit aa5181cdfc

View File

@ -411,7 +411,7 @@ export class ApPersonService implements OnModuleInit {
[person.publicKey.id, person.publicKey],
]);
await this.userPublickeysRepository.save(Array.from(publicKeys.values(), key => ({
await transactionalEntityManager.save(Array.from(publicKeys.values(), key => new MiUserPublickey({
keyId: key.id,
userId: user!.id,
keyPem: key.publicKeyPem,