use transactionalEntityManager
This commit is contained in:
parent
d7c32cef70
commit
aa5181cdfc
|
@ -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 New Issue