diff --git a/core/comms/xorms.go b/core/comms/xorms.go index 7603772..5bafbf1 100644 --- a/core/comms/xorms.go +++ b/core/comms/xorms.go @@ -19,8 +19,10 @@ func XormOneDb(db *gocloud.DBHelper, id, data interface{}, columns ...interface{ col := "id" if len(columns) > 0 { cols, ok := columns[0].(string) - if ok && cols != "" { - col = cols + if ok { + if cols != "" { + col = cols + } } else { ses = ses.Table(columns[0]) }