fix(): fixed from db -> json
This commit is contained in:
1 parent
749da42ffc
commit
40b2f00dc5
1 file changed
+4
@@ -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