mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(): fixed from db -> json
This commit is contained in:
@@ -26,6 +26,10 @@ func (j *Json) FromDB(data []byte) error {
|
||||
}
|
||||
|
||||
func (j *Json) ToDB() ([]byte, error) {
|
||||
if j == nil || j.data == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return j.Encode()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user