mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-30 14:30:08 +08:00
added new line at the end of PromotedVersionMapper and comment out the logger
This commit is contained in:
parent
8deec1cba4
commit
3f8e1b6ff7
@ -19,7 +19,7 @@ import java.util.List;
|
||||
public class PromotedVersionMapper implements ColumnMapper<List<PromotedVersion>> {
|
||||
public List<PromotedVersion> map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException {
|
||||
JSONB jsonb = (JSONB) r.getObject(columnNumber);
|
||||
LoggerFactory.getLogger(PromotedVersionMapper.class).info(jsonb.toString()); // for json logging
|
||||
// LoggerFactory.getLogger(PromotedVersionMapper.class).info(jsonb.toString()); // for json logging
|
||||
JsonNode jsonNode = jsonb.getJson();
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
ObjectReader reader = mapper.readerFor(new TypeReference<List<PromotedVersion>>() {});
|
||||
@ -31,4 +31,4 @@ public class PromotedVersionMapper implements ColumnMapper<List<PromotedVersion>
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user