Merge branch 'refs/heads/feat-video'

This commit is contained in:
junleea 2024-12-17 18:05:15 +08:00
commit aa765e9412
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.Where("auth_id = ?", id).Where("delete_time<=now()").Where("isdelete=0").Find(&videos)
DB.Raw("select * from videos where auth_id = ? and delete_time<=now() and isdelete=0", id).Scan(&videos)
return videos
}