trim padded Actor keys to avoid value too long error

This commit is contained in:
Hazelnoot 2025-02-22 12:02:16 -05:00
parent e10e9ba071
commit 6cb04dbaac
2 changed files with 70 additions and 2 deletions

View file

@ -447,7 +447,7 @@ export class ApPersonService implements OnModuleInit {
await transactionalEntityManager.save(new MiUserPublickey({
userId: user.id,
keyId: person.publicKey.id,
keyPem: person.publicKey.publicKeyPem,
keyPem: person.publicKey.publicKeyPem.trim(),
}));
}
});

File diff suppressed because one or more lines are too long