use transactionalEntityManager
This commit is contained in:
parent
d7c32cef70
commit
aa5181cdfc
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue