Compare commits

..

No commits in common. "aa765e941216f0d295d9c4692714d6eaabe629f5" and "4128347eab34b9cc869c6026407ac99f3f9c26a4" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ type Video struct {
func FindWillDelVideoList(id int) []Video {
var videos []Video
DB.Raw("select * from videos where auth_id = ? and delete_time<=now() and isdelete=0", id).Scan(&videos)
DB.Where("auth_id = ?", id).Where("delete_time<=now()").Where("isdelete=0").Find(&videos)
return videos
}