Properly encode ID's as report dimensions

This commit is contained in:
Tomaž Jerman
2022-04-25 15:43:00 +02:00
parent 25c093e956
commit ded4e378ae
@@ -244,6 +244,13 @@ func (b recordReportBuilder) Cast(row sqlx.ColScanner) (out map[string]interface
switch cv := v.(type) {
case []uint8:
out[k] = string(cv)
case uint64, int64:
// Just to make sure we don't break anything old
if strings.Contains(k, "dimension") {
out[k] = fmt.Sprintf("%d", cv)
} else {
out[k] = cv
}
default:
}
}