nil return modify

pull/131/head
Gordon 3 years ago
parent bd5480b264
commit 8faf1140fb

@ -100,7 +100,7 @@ func SelectAllUserID() ([]string, error) {
return nil, err
}
var resultArr []string
err = dbConn.Table("user").Select("user_id").Scan(&resultArr).Error
err = dbConn.Table("user").Select("user_id").Pluck("user_id", &resultArr).Error
if err != nil {
return nil, err
}

Loading…
Cancel
Save