use Account-specific json serializer when reserving username hash

This commit is contained in:
Jonathan Klabunde Tomer 2023-11-29 13:40:06 -08:00 committed by GitHub
parent 8fbc1dac74
commit a05a230085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ public class Accounts extends AbstractDynamoDbStore {
final byte[] accountJsonBytes;
try {
accountJsonBytes = SystemMapper.jsonMapper().writeValueAsBytes(account);
accountJsonBytes = ACCOUNT_DDB_JSON_WRITER.writeValueAsBytes(account);
} catch (final JsonProcessingException e) {
throw new IllegalArgumentException(e);
}