use Account-specific json serializer when reserving username hash
This commit is contained in:
parent
8fbc1dac74
commit
a05a230085
|
@ -445,7 +445,7 @@ public class Accounts extends AbstractDynamoDbStore {
|
||||||
final byte[] accountJsonBytes;
|
final byte[] accountJsonBytes;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
accountJsonBytes = SystemMapper.jsonMapper().writeValueAsBytes(account);
|
accountJsonBytes = ACCOUNT_DDB_JSON_WRITER.writeValueAsBytes(account);
|
||||||
} catch (final JsonProcessingException e) {
|
} catch (final JsonProcessingException e) {
|
||||||
throw new IllegalArgumentException(e);
|
throw new IllegalArgumentException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue