diff --git a/pkg/common/db/mysql_model/im_mysql_model/user_model.go b/pkg/common/db/mysql_model/im_mysql_model/user_model.go index f378fdbb5..cbf87f7fe 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/user_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/user_model.go @@ -121,7 +121,10 @@ func SelectAllUID() ([]string, error) { if err != nil { return uid, err } - rows, _ := dbConn.Raw("select uid from user").Rows() + rows, err := dbConn.Raw("select uid from user").Rows() + if err != nil { + return uid, err + } defer rows.Close() var strUID string for rows.Next() {