This commit is contained in:
0xdcarns 2022-01-28 18:53:45 -05:00
parent ef20139ce1
commit 90fcddb588

View file

@ -147,6 +147,7 @@ func Insert(key string, value string, tableName string) error {
if key != "" && value != "" && IsJSONString(value) {
return getCurrentDB()[INSERT].(func(string, string, string) error)(key, value, tableName)
} else {
logger.Log(0, "invalid json detected!!")
return errors.New("invalid insert " + key + " : " + value)
}
}