Chore: Replace entity GRN with infra/grn GRN (#74198)
replace entity GRN with infra/grn GRN
This commit is contained in:
@@ -7,6 +7,8 @@ import (
|
||||
"unsafe"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
|
||||
"github.com/grafana/grafana/pkg/infra/grn"
|
||||
)
|
||||
|
||||
func init() { //nolint:gochecknoinits
|
||||
@@ -128,7 +130,7 @@ func readEntity(iter *jsoniter.Iterator, raw *Entity) {
|
||||
for l1Field := iter.ReadObject(); l1Field != ""; l1Field = iter.ReadObject() {
|
||||
switch l1Field {
|
||||
case "GRN":
|
||||
raw.GRN = &GRN{}
|
||||
raw.GRN = &grn.GRN{}
|
||||
iter.ReadVal(raw.GRN)
|
||||
case "updatedAt":
|
||||
raw.UpdatedAt = iter.ReadInt64()
|
||||
|
||||
Reference in New Issue
Block a user